Expose CORS_ORIGIN_ALLOW_ALL setting
This commit is contained in:
@@ -313,6 +313,7 @@ if FEATURES.get('ENABLE_CORS_HEADERS'):
|
||||
) + MIDDLEWARE_CLASSES
|
||||
CORS_ALLOW_CREDENTIALS = True
|
||||
CORS_ORIGIN_WHITELIST = ENV_TOKENS.get('CORS_ORIGIN_WHITELIST', ())
|
||||
CORS_ORIGIN_ALLOW_ALL = ENV_TOKENS.get('CORS_ORIGIN_ALLOW_ALL', False)
|
||||
|
||||
############################## SECURE AUTH ITEMS ###############
|
||||
# Secret things: passwords, access keys, etc.
|
||||
|
||||
@@ -1700,6 +1700,7 @@ if FEATURES.get('ENABLE_CORS_HEADERS'):
|
||||
) + MIDDLEWARE_CLASSES
|
||||
CORS_ALLOW_CREDENTIALS = True
|
||||
CORS_ORIGIN_WHITELIST = ()
|
||||
CORS_ORIGIN_ALLOW_ALL = False
|
||||
|
||||
###################### Registration ##################################
|
||||
|
||||
|
||||
Reference in New Issue
Block a user