CSRF Protection with multiple js scripts |
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 You should probably make these variables global so both scripts can use the same variables. |
Messages In This Thread |
CSRF Protection with multiple js scripts - by AgBRAT - 07-05-2022, 12:28 AM
RE: CSRF Protection with multiple js scripts - by includebeer - 07-06-2022, 01:08 PM
|