feat: update cors headers for cross domain request (#33898)
This commit is contained in:
@@ -2503,6 +2503,8 @@ if FEATURES.get('ENABLE_CORS_HEADERS'):
|
||||
CORS_ALLOW_INSECURE = False
|
||||
CORS_ALLOW_HEADERS = corsheaders_default_headers + (
|
||||
'use-jwt-cookie',
|
||||
'content-range',
|
||||
'content-disposition',
|
||||
)
|
||||
|
||||
LOGIN_REDIRECT_WHITELIST = []
|
||||
|
||||
@@ -258,6 +258,8 @@ CORS_ALLOW_CREDENTIALS = True
|
||||
CORS_ORIGIN_ALLOW_ALL = True
|
||||
CORS_ALLOW_HEADERS = corsheaders_default_headers + (
|
||||
'use-jwt-cookie',
|
||||
'content-range',
|
||||
'content-disposition',
|
||||
)
|
||||
|
||||
################### Special Exams (Proctoring) and Prereqs ###################
|
||||
|
||||
@@ -608,6 +608,8 @@ if FEATURES.get('ENABLE_CORS_HEADERS'):
|
||||
CORS_ALLOW_INSECURE = ENV_TOKENS.get('CORS_ALLOW_INSECURE', False)
|
||||
CORS_ALLOW_HEADERS = corsheaders_default_headers + (
|
||||
'use-jwt-cookie',
|
||||
'content-range',
|
||||
'content-disposition',
|
||||
)
|
||||
|
||||
################# Settings for brand logos. #################
|
||||
|
||||
Reference in New Issue
Block a user