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 token mismatch. on cache forget #1561

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

erikn69
Copy link
Contributor

@erikn69 erikn69 commented Mar 5, 2024

If you add ['web'] middleware on debugbar.route_middleware, the cache forget action gets CSRF token mismatch. exception
Also others middleware could validate delete route, this route is not deleting anything itself, it just forgets the cache.

image

Other option is adding `CSRF to header
laravel/echo/src/connector/connector.ts#L60-L79

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant