Welcome Guest, Not a member yet? Register   Sign In
CSRF Protection with multiple js scripts
#2

I think the problem is each script has it's own local variables csrfName and csrfHash. When you update the variables after the ajax request has returned, you only update the local variables. It doesn't update the ones in the other script. 
Code:
// Update CSRF hash
csrfName = res.csrfName;
csrfHash = res.csrfHash;

You should probably make these variables global so both scripts can use the same variables.
Reply


Messages In This Thread
RE: CSRF Protection with multiple js scripts - by includebeer - 07-06-2022, 01:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB