Welcome Guest, Not a member yet? Register   Sign In
How to use POST while keeping CSRF as true
#6

Thanks for your help.
For point number 2, this is what I can see in developer tool:

General

Request URL:http://localhost/Projects/New_folder/dashboards/user/country_actvity_search
Request MethodTongueOST
Status Code:403 Forbidden
Remote Address:[::1]:80
Referrer Policy:no-referrer-when-downgrade


Response Headers

Connection:Keep-Alive
Content-Length:1131
Content-Type:text/html; charset=UTF-8
Date:Tue, 02 Jan 2018 05:58:20 GMT
Keep-Alive:timeout=5, max=99
Server:Apache/2.4.28 (Win32) OpenSSL/1.0.2l PHP/7.1.10
Set-Cookie:csrf_cookie_name=08af56109abf30e2787847894cfcc24c; expires=Tue, 02-Jan-2018 07:58:20 GMT; Max-Age=7200; path=/; domain=http://localhost/Projects/New_folder/dashboards/
X-Powered-ByTongueHP/7.1.10


Request Headers

Accept:*/*
Accept-Encoding:gzip, deflate, br
Accept-Language:en-US,en;q=0.9
Connection:keep-alive
Content-Length:86
Content-Type:application/x-www-form-urlencoded; charset=UTF-8
Cookie:ci_session=1e4emamhsuvf2ho1pjc5tnavaiup1243
Host:localhost
Origin:http://localhost
Referer:http://localhost/Projects/New_folder/dashboards/user/country_overview
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36
X-Requested-With:XMLHttpRequest


Form Data

csrf_token_name:cdbbad48a99402d377961d7348a1bc4c
country_name:Sweden
country_year:2017



Also, I have kept $config['csrf_regenerate'] = FALSE;

Can you help with the issue.

Thanks,
-Krati
Reply


Messages In This Thread
RE: How to use POST while keeping CSRF as true - by kratisalgia - 01-01-2018, 11:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB