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=["*"], )