diff options
author | 2020-12-14 18:41:33 +0000 | |
---|---|---|
committer | 2020-12-14 18:41:33 +0000 | |
commit | 8656df32cf1a78ec76b8cba21fb394015d8b399a (patch) | |
tree | 9490055fb3c47d9b9b992ea77499507f121979e8 /backend | |
parent | Add Netlify root and deploy previews to CORS (diff) |
Swap out list of regex for single regex
Diffstat (limited to 'backend')
-rw-r--r-- | backend/__init__.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/backend/__init__.py b/backend/__init__.py index 67de26d..0eddde0 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -15,9 +15,7 @@ middleware = [ allow_origins=[ os.getenv("ALLOWED_URL", "https://forms.pythondiscord.com"), ], - allow_origin_regex=[ - r"https://(?:.*--)?pydis-forms\.netlify\.app/", - ], + allow_origin_regex=r"https://(?:.*--)?pydis-forms\.netlify\.app/", allow_headers=[ "Authorization", "Content-Type" |