From ce0dda6afd283a9dc9f8f195f1401bb082bc9420 Mon Sep 17 00:00:00 2001 From: Chris <15219900+Ninjagod1251@users.noreply.github.com> Date: Mon, 4 Dec 2023 11:45:11 -0800 Subject: [PATCH] fix: removed cors (#31) --- main.py | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/main.py b/main.py index 3870d8c..c16a2bc 100644 --- a/main.py +++ b/main.py @@ -52,23 +52,23 @@ async def swagger_ui_redirect(req: Request) -> HTMLResponse: init_openapi(app) PackageManifest.update_forward_refs() -app.add_middleware( - CORSMiddleware, - allow_origins=[ - # NOTE: When running remix in local dev, this is the URL - "http://localhost:8080", - # NOTE: When running `npm run build && npm run preview`, this is the URL - "http://localhost:4173", - # NOTE: This is where the UI gets hosted - "https://remix.ethereum.org", - "https://remix-alpha.ethereum.org", - "https://remix-beta.ethereum.org", - ], - allow_origin_regex="https://deploy-preview-[0-9]*--remixproject.netlify.app/", - allow_credentials=True, - allow_methods=["*"], - allow_headers=["*"], -) +# app.add_middleware( +# CORSMiddleware, +# allow_origins=[ +# # NOTE: When running remix in local dev, this is the URL +# "http://localhost:8080", +# # NOTE: When running `npm run build && npm run preview`, this is the URL +# "http://localhost:4173", +# # NOTE: This is where the UI gets hosted +# "https://remix.ethereum.org", +# "https://remix-alpha.ethereum.org", +# "https://remix-beta.ethereum.org", +# ], +# allow_origin_regex="https://deploy-preview-[0-9]*--remixproject.netlify.app/", +# allow_credentials=True, +# allow_methods=["*"], +# allow_headers=["*"], +# ) class TaskStatus(Enum):