diff --git a/lms/envs/aws.py b/lms/envs/aws.py index 47ecffba6d..37326c847e 100644 --- a/lms/envs/aws.py +++ b/lms/envs/aws.py @@ -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. diff --git a/lms/envs/common.py b/lms/envs/common.py index d0365412f7..d35f902666 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -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 ##################################