You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm unable to use an origin check to validate WebSocket upgrade requests so I want to protect against cross-site WebSocket hijacking attacks by using CSRF token validation.
Describe the solution that you would like.
I would like the library to expose the token validation function so I can use the validation logic in my own method.
Describe alternatives you have considered.
Currently, I'm formulating POST requests on the fly configured with the initial HTTP GET upgrade request's credentials and passing them through a csrf protection instance ServeHTTP() method.
Anything else?
Great library! Thanks for all your work!
The text was updated successfully, but these errors were encountered:
amorey
changed the title
[FEATURE] Validate HTTP GET upgrade requests to protect against CSWSH attacks
[FEATURE] Expose token validation function to allow for custom implementations
Dec 11, 2024
Is there an existing feature request for this?
Is your feature request related to a problem? Please describe.
I'm unable to use an origin check to validate WebSocket upgrade requests so I want to protect against cross-site WebSocket hijacking attacks by using CSRF token validation.
Describe the solution that you would like.
I would like the library to expose the token validation function so I can use the validation logic in my own method.
Describe alternatives you have considered.
Currently, I'm formulating POST requests on the fly configured with the initial HTTP GET upgrade request's credentials and passing them through a csrf protection instance
ServeHTTP()
method.Anything else?
Great library! Thanks for all your work!
The text was updated successfully, but these errors were encountered: