CSRF-Protector-PHP
CSRF-Protector-PHP copied to clipboard
Issue with Ajax POST calls on page loads
JS Request:
Request Header:
Please check.
@mebjas : Can you please look into this?
@bhavinrshah on it
So it looks to be related to this - https://github.com/mebjas/CSRF-Protector-PHP/pull/112
As a temp hack you could try making changes as suggested in this PR.
I tried but that is not working.
I have to replace $(document).ready(function() {
to $(window).bind('load', function() {
and it works. But still if it can be done through csrfprotector.js
that would be great.
Yes please make the required changes as dont in that PR in CSRF Protector code. Can you have the projec ton github? I'll send a PR to the same to test this scenario further.
@bhavinrshah
@mebjas : Let me create a test project on github and let you know
@mebjas : Here is link https://github.com/bhavinrshah/csrf_issue
@bhavinrshah will setup the stack and check. Stay tuned.
@mebjas: Do we have any update on this?
There is a missing submit.php file to completely reproduce this demo. Can you add some mock submit.php so I can test end to end? @bhavinrshah