forked from github/plane
Update production.py
This commit is contained in:
parent
36b0aebc8f
commit
25b4495190
@ -43,17 +43,10 @@ DOCKERIZED = os.environ.get(
|
||||
# Honor the 'X-Forwarded-Proto' header for request.is_secure()
|
||||
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
||||
|
||||
# Allow all host headers
|
||||
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 = ["http://localhost:8080","http://localhost:80","http://localhost"]
|
||||
|
||||
CORS_ALLOWED_ORIGIN_REGEXES = [
|
||||
r"^https://\w+\.domain\.com$",
|
||||
]
|
||||
|
||||
CORS_ALLOW_METHODS = [
|
||||
'DELETE',
|
||||
|
Loading…
Reference in New Issue
Block a user