Update production.py

This commit is contained in:
Narayana 2023-03-08 17:03:47 +05:30
parent 324410d64d
commit 36b0aebc8f

View File

@ -44,14 +44,12 @@ DOCKERIZED = os.environ.get(
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
# Allow all host headers
ALLOWED_HOSTS = ["*"]
ALLOWED_HOSTS = ["http://localhost:8080","http://localhost:80","http://localhost"]
# TODO: Make it FALSE and LIST DOMAINS IN FULL PROD.
CORS_ALLOW_ALL_ORIGINS = True
CORS_ALLOWED_ORIGINS = [
"*"
]
CORS_ALLOWED_ORIGINS = ["http://localhost:8080","http://localhost:80","http://localhost"]
CORS_ALLOWED_ORIGIN_REGEXES = [
r"^https://\w+\.domain\.com$",