Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(csrf): override fetch to handle requests with CSRF token #1014

Merged
merged 1 commit into from
Oct 16, 2024

Commits on Oct 16, 2024

  1. fix: fetch override to attach XSRF token to fix csrfProtection issue

    During the migration from Axios to fetch, we overlooked the fact that Axios automatically handled
    CSRF tokens, while fetch does not. When CSRF protection was turned on, requests were failing with an
    "invalid CSRF token" error for users accessing the app even via HTTPS. This commit
    overrides fetch to ensure that the CSRF token is included in all requests.
    
    fix #1011
    Fallenbagel committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    eba009d View commit details
    Browse the repository at this point in the history