Welcome Guest, Not a member yet? Register   Sign In
[resolved] CSRF issue when ajax functions and normal forms are used on the same page
#1
Bug 
(This post was last modified: 10-02-2020, 07:29 AM by kilden.)

Hello everyone !

I've got a problem with csrf reloads that break my mind :
I've got ajax-functions (for exemple an input field that updates a database) and form-submit-buttons (for exemple a button that delete a line in a database) on the same page... 

- my ajax functions work very well when I click only on them (csrf hash changes each time ajax is called)
- my simple forms/submit-buttons work very well also when I click only on them (csrf hash changes each time the page refreshes)

But when I mix them: if I call ajax functions and then a simple form, I always have to click two time on my submit buttons so that my action is applied, although csrf number change all the time...

I don't know how to resolve this issue because I don't even understand what could be the problem... !  Confused
If someone has an idea...  Idea
Reply


Messages In This Thread
[resolved] CSRF issue when ajax functions and normal forms are used on the same page - by kilden - 09-30-2020, 02:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB