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

CSRF token missing #36

Open
bennygenel opened this issue Aug 23, 2017 · 0 comments
Open

CSRF token missing #36

bennygenel opened this issue Aug 23, 2017 · 0 comments

Comments

@bennygenel
Copy link

Hi;

I used your tutorial as a start point and I successfully created an app and managed to get data with fetch

My problem is that I used krakenjs as my nodejs backend and it has default security rules set. I don't want to disable CSRF but when I try to do a POST request with fetch I get CSRF Token missing error.

I couldn't find a solution with doing some google search. I tried to save 'x-csrf-token' header on localStorage and post it back when I make a fetch POST but then I got CSRF Token mismatch error.

I would really appreciate any help or suggestions.
Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant