Commit e9bb6889 by Will Daly

Expose CORS_ORIGIN_ALLOW_ALL setting

parent 94daf078
...@@ -313,6 +313,7 @@ if FEATURES.get('ENABLE_CORS_HEADERS'): ...@@ -313,6 +313,7 @@ if FEATURES.get('ENABLE_CORS_HEADERS'):
) + MIDDLEWARE_CLASSES ) + MIDDLEWARE_CLASSES
CORS_ALLOW_CREDENTIALS = True CORS_ALLOW_CREDENTIALS = True
CORS_ORIGIN_WHITELIST = ENV_TOKENS.get('CORS_ORIGIN_WHITELIST', ()) CORS_ORIGIN_WHITELIST = ENV_TOKENS.get('CORS_ORIGIN_WHITELIST', ())
CORS_ORIGIN_ALLOW_ALL = ENV_TOKENS.get('CORS_ORIGIN_ALLOW_ALL', False)
############################## SECURE AUTH ITEMS ############### ############################## SECURE AUTH ITEMS ###############
# Secret things: passwords, access keys, etc. # Secret things: passwords, access keys, etc.
......
...@@ -1700,6 +1700,7 @@ if FEATURES.get('ENABLE_CORS_HEADERS'): ...@@ -1700,6 +1700,7 @@ if FEATURES.get('ENABLE_CORS_HEADERS'):
) + MIDDLEWARE_CLASSES ) + MIDDLEWARE_CLASSES
CORS_ALLOW_CREDENTIALS = True CORS_ALLOW_CREDENTIALS = True
CORS_ORIGIN_WHITELIST = () CORS_ORIGIN_WHITELIST = ()
CORS_ORIGIN_ALLOW_ALL = False
###################### Registration ################################## ###################### Registration ##################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment