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

Add ability to exclude / include URLs from CSRF protection #14

Closed
samdark opened this issue Dec 7, 2020 · 4 comments
Closed

Add ability to exclude / include URLs from CSRF protection #14

samdark opened this issue Dec 7, 2020 · 4 comments
Labels
status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement

Comments

@samdark
Copy link
Member

samdark commented Dec 7, 2020

Usually the middleware is enabled globally. Need to add a way to exclude certain URLs or include only certain URL.

@samdark samdark added type:enhancement Enhancement status:ready for adoption Feel free to implement this issue. labels Dec 7, 2020
@samdark
Copy link
Member Author

samdark commented Dec 7, 2020

Related to #12 where we need similar ability but based on authentication.

@vjik
Copy link
Member

vjik commented Dec 8, 2020

Hm... maybe this ability should by globaly for any middleware?

@samdark
Copy link
Member Author

samdark commented Dec 9, 2020

Likely not. Many middleware are meant to be attached to router groups/routes, some are alright to be always executed.

@samdark samdark closed this as completed Sep 27, 2021
@samdark
Copy link
Member Author

samdark commented Sep 27, 2021

Could be achieved now by disabling middleware via router config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants