From e2433ebdc85bdedd89d2d7ac4fbe16bffef0dd2b Mon Sep 17 00:00:00 2001 From: Felippe Costa Date: Sun, 8 Feb 2026 14:47:42 -0300 Subject: [PATCH] fix: add www.signedshot.io to CORS allowed origins --- app/main.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/main.py b/app/main.py index f897f3c..04a1414 100644 --- a/app/main.py +++ b/app/main.py @@ -104,18 +104,13 @@ def render(self, content: Any) -> bytes: ) # CORS configuration -cors_origins = ["https://signedshot.io"] +cors_origins = ["https://signedshot.io", "https://www.signedshot.io"] if settings.debug: - cors_origins.extend( - [ - "http://localhost:3000", - ] - ) + cors_origins.append("http://localhost:3000") app.add_middleware( CORSMiddleware, allow_origins=cors_origins, - allow_origin_regex=r"https://.*\.vercel\.app" if settings.debug else None, allow_methods=["*"], allow_headers=["*"], )