feat: Update CORS allowed headers for compat. w/ axios-cache-interceptor (#35402)
See https://axios-cache-interceptor.js.org/config/request-specifics#cache-cachetakeover cache.cacheTakeover (default true): you need to make sure Cache-Control, Pragma and Expires headers are included into your server’s Access-Control-Allow-Headers CORS configuration.
This commit is contained in:
@@ -3687,6 +3687,9 @@ if FEATURES.get('ENABLE_CORS_HEADERS'):
|
||||
# because that decision might happen in a later config file. (The headers to
|
||||
# allow is an application logic, and not site policy.)
|
||||
CORS_ALLOW_HEADERS = corsheaders_default_headers + (
|
||||
'cache-control',
|
||||
'expires',
|
||||
'pragma',
|
||||
'use-jwt-cookie',
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user