Skip to content

Commit

Permalink
feat: Update CORS allowed headers for compat. w/ axios-cache-intercep…
Browse files Browse the repository at this point in the history
…tor (#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.
  • Loading branch information
bradenmacdonald authored Aug 30, 2024
1 parent 92cc3bf commit bfee53b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3687,6 +3687,9 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring
# 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',
)

Expand Down

0 comments on commit bfee53b

Please sign in to comment.