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

Error - Missing CSRF token cookie #7

Open
geoidesic opened this issue Jul 12, 2019 · 0 comments
Open

Error - Missing CSRF token cookie #7

geoidesic opened this issue Jul 12, 2019 · 0 comments

Comments

@geoidesic
Copy link

geoidesic commented Jul 12, 2019

I'm trying to implement CRUD. Via Postman it works for GET but POST is failing with Missing CSRF token cookie. I've tried disabling CSRF tokens as per https://book.cakephp.org/3.0/en/controllers/components/csrf.html#disabling-the-csrf-component-for-specific-actions however, I'm not sure this is good practice and it doesn't seem to work anyway.

I've been trying to follow this tutorial but can't get it to work: http://www.bravo-kernel.com/2015/04/how-to-build-a-cakephp-3-rest-api-in-minutes/ due to the CSRF issues.

Any ideas?

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