aboutsummaryrefslogtreecommitdiffstats
path: root/backend/__init__.py
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-03-06 22:48:19 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-03-06 22:48:19 +0300
commitca730082b523e62595687843a914adad8dbbaccf (patch)
tree351bfbbf4aff36d95560ad66103f358da9d8d7f6 /backend/__init__.py
parentRenames Token To `token` (diff)
Formats Authorize File
Cleans up the authorize file, and the __init__ to maintain the project's code style. Co-authored-by: Joe Banks <[email protected]> Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'backend/__init__.py')
-rw-r--r--backend/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/__init__.py b/backend/__init__.py
index 5c91a65..220b457 100644
--- a/backend/__init__.py
+++ b/backend/__init__.py
@@ -15,6 +15,7 @@ ORIGINS = [
r"(https://[^.?#]*--pydis-forms\.netlify\.app)", # Netlify Previews
r"(https?://[^.?#]*.forms-frontend.pages.dev)", # Cloudflare Previews
]
+
if not constants.PRODUCTION:
# Allow all hosts on non-production deployments
ORIGINS.append(r"(.*)")