POST via Ajax returns 403 with CSRF enabled |
(04-06-2020, 08:27 AM)Gary Wrote: When using csrf, a unique token is automatically regenerated for each page update (for HTML), but not for AJAX (as the page isn’t updated)... having a brief glance at your code, it does look like you’re passing the token correctly and also for every reply to the server, which may point to your reply being rejected AFTER the first use of the token (do you perhaps find you get one AJAX submission in, then it goes pear-shaped from the second one (?)). Thank you Gary, Note that: - There is only one submission - Yep, I'm aware of CSRFRegenerate, but the issue persists while setting it to false as well - The semicolon didn't make a difference Any other ideas? Might it be a bug? I think you should be able to reproduce this issue with all the details that I've shared initially |
Messages In This Thread |
POST via Ajax returns 403 with CSRF enabled - by marcvidalim - 04-05-2020, 11:39 AM
RE: POST via Ajax returns 403 with CSRF enabled - by Gary - 04-06-2020, 08:27 AM
RE: POST via Ajax returns 403 with CSRF enabled - by marcvidalim - 04-06-2020, 09:30 AM
RE: POST via Ajax returns 403 with CSRF enabled - by Gary - 04-06-2020, 12:08 PM
RE: POST via Ajax returns 403 with CSRF enabled - by marcvidalim - 04-06-2020, 12:36 PM
RE: POST via Ajax returns 403 with CSRF enabled - by Gary - 04-06-2020, 03:16 PM
RE: POST via Ajax returns 403 with CSRF enabled - by marcvidalim - 04-08-2020, 02:23 AM
|