(07-13-2017, 10:52 AM)Paradinight Wrote: (07-13-2017, 10:44 AM)pippuccio76 Wrote: (07-13-2017, 09:44 AM)pippuccio76 Wrote: (07-13-2017, 09:13 AM)pippuccio76 Wrote: (07-12-2017, 12:19 PM)ivantcholakov Wrote: 403 (Forbidden)
This only you can investigate at your place. Windows, Linux? Check the php file permissions? Something within code (authentication)? Something within .htaccess? Similar complaint at StackOverflow? ...
It's a free host this is the page :
link with ajax problem
I change the code of metdod with a value (costant) instead a $_POST value , the problem is the same , but if i visit the link :
link
the method work correctly
Problem partially solved :
if i set $config['csrf_protection'] = FALSE;
the ajax call work , but is it secure ?
How can i secure the script ?
you need to return a new token.
https://www.codeigniter.com/user_guide/l...rgery-csrf
return a json string with the html and the token
I use form_open() but i don't understand wath i have to do ....