Skip CSRF referer check for cross-domain requests.
This commit extends the workaround in `cors_csrf` middleware to Django Rest Framework's SessionAuthentication, which calls Django's CSRF middleware directly. The workaround checks the cross domain whitelist and skips the CSRF referer check for domains on the whitelist.
Showing
common/djangoapps/cors_csrf/helpers.py
0 → 100644
Please
register
or
sign in
to comment