Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] csrf protection issue
#1

(This post was last modified: 05-02-2018, 07:35 PM by yiujia.)

Hello,

I'm using Codeigniter 3.1.8 and my site is with https.

I looked many solutions with this issue but the solution i found don't work.

I try to do ajax post but csrf protection blocks me (403 error).

I have the hidden input with csrf name and hash value. I update the hash value on every request.

I send the good value by ajax json (hash value sent == cookie hash value).

I have the config csrf protection and regenerate set to TRUE.

When i set crsf protection to FALSE, my ajax request works.

Can you help me ? i spent so many hours to try to solve this issue...

Thanks and sorry for my bad english Blush
Reply


Messages In This Thread
[SOLVED] csrf protection issue - by yiujia - 04-30-2018, 10:24 PM
RE: csrf protection issue - by InsiteFX - 05-01-2018, 04:14 AM
RE: csrf protection issue - by yiujia - 05-01-2018, 06:52 AM
RE: csrf protection issue - by InsiteFX - 05-01-2018, 10:31 AM
RE: csrf protection issue - by yiujia - 05-01-2018, 11:22 AM
RE: csrf protection issue - by dave friend - 05-01-2018, 03:37 PM
RE: csrf protection issue - by yiujia - 05-02-2018, 07:34 PM
RE: [SOLVED] csrf protection issue - by yiujia - 05-03-2018, 10:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB