Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: POST via Ajax returns 403 with CSRF enabled
Post: RE: POST via Ajax returns 403 with CSRF enabled

Gary Wrote: (04-06-2020, 03:16 PM) -- As far as I'm aware, contentType is a page header field. I suspect when it arrives in your AJAX submission, it confuses things on the server side because it's...
3,347 Views
6 Replies
04-08-2020, 02:23 AM
marcvidalim
    Thread: POST via Ajax returns 403 with CSRF enabled
Post: RE: POST via Ajax returns 403 with CSRF enabled

Gary Wrote: (04-06-2020, 12:08 PM) -- Once you've checked the setting CSRFRegenerate is FALSE, it may be worth trying setting dataType: 'html' in your AJAX routine (?). [hr] You could also try remo...
3,347 Views
6 Replies
04-06-2020, 12:36 PM
marcvidalim
  Smile Thread: POST via Ajax returns 403 with CSRF enabled
Post: RE: POST via Ajax returns 403 with CSRF enabled

Gary Wrote: (04-06-2020, 08:27 AM) -- 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 glan...
3,347 Views
6 Replies
04-06-2020, 09:30 AM
marcvidalim
  Sad Thread: POST via Ajax returns 403 with CSRF enabled
Post: POST via Ajax returns 403 with CSRF enabled

Hello Community, I've deployed the latest Codeigniter 4.0.2 version and I have an issue when submitting a form with Post method via Ajax when CSRF is enabled, I've tried my best to figure out what ...
3,347 Views
6 Replies
04-05-2020, 11:39 AM
marcvidalim

Theme © iAndrew 2016 - Forum software by © MyBB