View located in different default folder |
(01-12-2018, 11:24 AM)jreklund Wrote: Totally forgot you will need to access your Segway class this way. Hello, it's working fine; now I have a problem with .htaccess file about ubication. I have two .htaccess files located so... 1- .htaccess in root folder: Code: DirectoryIndex index.php index.html 2- .htaccess in APP folder: Code: <IfModule authz_core_module> Then I'm getting error to CRUD operations: Failed to load resource: the server responded with a status of 403 (Forbidden) Thanks by your help!
Please try to disable csrf protection, so we know the cause of the problem.
app\config\config.php PHP Code: $config['csrf_protection'] = FALSE; If it's working, you will need to turn on csrf protection again and pass the csrf token and cookie name with your ajax request. There are plenty of solution for this problem, so a quick search on this forum will solve that. (01-12-2018, 11:42 PM)jreklund Wrote: Please try to disable csrf protection, so we know the cause of the problem. Working if PHP Code: $config['csrf_protection'] = FALSE; Then talk me about it, because would security risk? Thanks
Yes, it's a security risk. So now you need to patch the form that generates that error.
If you are using a standard <form> tag, you can add the hidden field from the manual or start using the Form Helper. If you are using Ajax/Javascript, search this forum. There are plenty of information about that topic already. Codeigniter manual: Cross-site request forgery (CSRF) The Open Web Application Security Project: Cross-Site Request Forgery (CSRF) |
Welcome Guest, Not a member yet? Register Sign In |