This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Add baseUrl parsing to avoid false "CSRF protected" error #184
manchakkay
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great to implement trimming and work with the trailing slash to avoid false positives of the "CSRF protected" error.
authjs-nuxt/packages/authjs-nuxt/src/runtime/utils.ts
Line 32 in 95a3136
I spent some time searching for the error and as I see in discussions there are people like me. Some documentation on authorization and specifying URLs use slashes at the end, so you can accidentally stumble upon a block due to a mismatch of origins.
Related discussions & issues:
#97
#75
Beta Was this translation helpful? Give feedback.
All reactions