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
-
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