Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [csrf]

The tag has no usage guidance.

10 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
0 answers
42 views

How to append current version to post URL - versioning a post

I'm middle of a PWA app and one of the problems facing is versioning, once the post cached using Service Worker and if any change amended(ex: if it is an event post, the event end date may be extended....
Sameera Thilakasiri's user avatar
1 vote
0 answers
344 views

What's left to troubleshoot this quirky "Unable to verify your data submission" behavior?

I have a frontend login form that sends a request to Craft's own actions/users/login action. I've used this same process in another project and it works there, but not here, and I can't figure out ...
Steven Thate's user avatar
1 vote
0 answers
852 views

How to access logged in CSRF token?

I’m currently using react as a font end SPA with craft cms as the backend. I’m trying to create user accounts where a user use can sign up and favourite content on the site, using the Like for craft ...
samput's user avatar
  • 51
1 vote
0 answers
616 views

CSRF token creation and Content-Security-Policy header

I've just updated my site with setting my Content-Security-Policy Header and after fixing the slew of errors which popped up in the console, I am now down to one. The relevant part of my .htaccess ...
rjdvsk's user avatar
  • 105
1 vote
0 answers
2k views

Can’t log in to the Craft control panel

After I input my credentials, it just stayed on the login page, and did not go to the dashboard. The password is good, we didn't get invalid username and password error. I opened the trace mode and ...
xyray's user avatar
  • 79
0 votes
0 answers
23 views

Add to cart via Ajax (sometimes) results in abandoned carts and invalid CSRF

In Craft Commerce, I am using the Blitz Cache plugin. My "add to cart"-button uses ajax to add the product to the cart. This is the twig-code for the form: <form method="post" ...
nitech's user avatar
  • 679
0 votes
0 answers
28 views

Any way to manually validate a CSRF token on the front-end?

I'm looking to manually validate a CSRF token (passed via GET) in a template, basically as a way of rate-limiting bots accessing a page which generates a CSV file. Poking around the Craft docs and ...
Derek Hogue's user avatar
0 votes
0 answers
92 views

Email template error

In the logs, I have this error: 2021-02-01 18:00:04 [-][-][-][error][craft\commerce\services\Emails::sendEmail] Email template parse error for email “Order Submitted”. Order: “123456”. Template error:...
hackerman's user avatar
0 votes
0 answers
137 views

Q: Error 400 Bad Request on basic admin actions like admin/actions/elements/get-modal-body

Context: The client recently upgraded their Craft version along with several of their plugins. I believe this issue started post-upgrade. They are now on Craft 3.4.26. Problem: Certain admin actions, ...
Adam Tsai's user avatar
0 votes
0 answers
2k views

CSRF token could not be verified - ajax

I've got a Craft plugin that returns some results based on filter options on the front end. The filter sends an ajax submissions and returns the markup to populate the front end with. I've read the ...
JamesNZ's user avatar
  • 947