feat: update cors headers for cross domain request (#33898)

This commit is contained in:
Kristin Aoki
2023-12-12 09:09:18 -05:00
committed by GitHub
parent c41fdfb8f0
commit d08e93d42c
3 changed files with 6 additions and 0 deletions

View File

@@ -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 = []

View File

@@ -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 ###################

View File

@@ -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. #################