Welcome Guest, Not a member yet? Register   Sign In
Ajax concatenate query
#19

(This post was last modified: 07-13-2017, 10:52 AM by Paradinight.)

(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
Reply


Messages In This Thread
Ajax concatenate query - by pippuccio76 - 07-10-2017, 01:50 PM
RE: Ajax concatenate query - by rtenny - 07-12-2017, 08:50 AM
RE: Ajax concatenate query - by pippuccio76 - 07-12-2017, 09:16 AM
RE: Ajax concatenate query - by rtenny - 07-12-2017, 08:55 AM
RE: Ajax concatenate query - by pippuccio76 - 07-12-2017, 09:22 AM
RE: Ajax concatenate query - by Paradinight - 07-12-2017, 09:43 AM
RE: Ajax concatenate query - by pippuccio76 - 07-12-2017, 10:58 AM
RE: Ajax concatenate query - by Paradinight - 07-12-2017, 11:08 AM
RE: Ajax concatenate query - by ivantcholakov - 07-12-2017, 11:12 AM
RE: Ajax concatenate query - by pippuccio76 - 07-12-2017, 12:08 PM
RE: Ajax concatenate query - by Wouter60 - 07-12-2017, 11:40 AM
RE: Ajax concatenate query - by ivantcholakov - 07-12-2017, 12:19 PM
RE: Ajax concatenate query - by pippuccio76 - 07-13-2017, 09:13 AM
RE: Ajax concatenate query - by pippuccio76 - 07-13-2017, 09:44 AM
RE: Ajax concatenate query - by pippuccio76 - 07-13-2017, 10:44 AM
RE: Ajax concatenate query - by Paradinight - 07-13-2017, 10:52 AM
RE: Ajax concatenate query - by pippuccio76 - 07-13-2017, 11:36 AM
RE: Ajax concatenate query - by pippuccio76 - 07-14-2017, 04:16 AM
RE: Ajax concatenate query - by Paradinight - 07-13-2017, 10:45 AM
RE: Ajax concatenate query - by skunkbad - 07-12-2017, 03:37 PM
RE: Ajax concatenate query - by pippuccio76 - 07-13-2017, 04:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB