Skip to content

Commit

Permalink
feat: Update CORS allowed headers for compat. w/ axios-cache-interceptor
Browse files Browse the repository at this point in the history
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 committed Aug 29, 2024
1 parent 01c718d commit 43a9820
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 43a9820

Please sign in to comment.