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

Send auth token to strapi through a cookie #11

Open
JadeMaveric opened this issue Jul 26, 2020 · 0 comments
Open

Send auth token to strapi through a cookie #11

JadeMaveric opened this issue Jul 26, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@JadeMaveric
Copy link
Member

We're reading the cookie locally and sending the token via a header. This exposes the cookie to client side js, making it susceptible to XSS attacks. While the code base takes care to escape all client input, minimising the risk. Sending the auth token via cookies is a much safer option.

Documentation on how to do this with strapi is lacking, so this'll need some digging into their source code.

@JadeMaveric JadeMaveric added enhancement New feature or request help wanted Extra attention is needed labels Jul 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant