Skip to content

Commit

Permalink
fix: use regex for cors with wildcard in it (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu authored Nov 28, 2023
1 parent 4c252b4 commit 2bea685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ async def swagger_ui_redirect(req: Request) -> HTMLResponse:
"https://remix.ethereum.org",
"https://remix-alpha.ethereum.org",
"https://remix-beta.ethereum.org",
"https://deploy-preview-*--remixproject.netlify.app/",
],
allow_origin_regex="https://deploy-preview-[0-9]*--remixproject.netlify.app/",
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
Expand Down

0 comments on commit 2bea685

Please sign in to comment.