Welcome Guest, Not a member yet? Register   Sign In
[resolved] CSRF issue when ajax functions and normal forms are used on the same page
#7

(This post was last modified: 10-02-2020, 06:58 AM by nc03061981.)

I think CSRF only generate new for very submit POST or Ajax POST.
If submit GET or Ajax GET, CSRF = last generate and can get it from cookie

When you ajax post, CSRF will generate new and different with current CSRF, so you need update current CSRF with new.

Learning CI4 from my works, from errors and how to fix bugs in the community

Love CI & Thanks CI Teams

Reply


Messages In This Thread
RE: CSRF issue when ajax functions and normal forms are used on the same page - by nc03061981 - 10-02-2020, 06:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB