diff options
author | 2020-12-14 18:37:12 +0000 | |
---|---|---|
committer | 2020-12-14 18:37:12 +0000 | |
commit | 8cdc5435ab4fa602c723fe64069fc9774cdd16b0 (patch) | |
tree | ece2f4bdb5d212d434e5d65e6c9916537993a914 /backend/__init__.py | |
parent | Merge pull request #26 from python-discord/ks123/responses-route (diff) |
Add Netlify root and deploy previews to CORS
Diffstat (limited to 'backend/__init__.py')
-rw-r--r-- | backend/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/__init__.py b/backend/__init__.py index 7b4cb4d..67de26d 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -15,6 +15,9 @@ middleware = [ allow_origins=[ os.getenv("ALLOWED_URL", "https://forms.pythondiscord.com"), ], + allow_origin_regex=[ + r"https://(?:.*--)?pydis-forms\.netlify\.app/", + ], allow_headers=[ "Authorization", "Content-Type" |