Show
POST url 403 forbidden in Codeigniter 3Tags: php , codeigniter , http-status-code-403 Answers: | Viewed 6,551 times Hi experts can you give me a suggestion, why I am getting this 403 forbidden on my code igniter currently running on my localhost. 403 forbidden The process is like this:
And lastly from my controller and display the value that i type in my input under my view. public function insert_question_header(){ $insert_header = array( 'question_header'=> $this->input->post("question_header") ); //$this->db->insert('tb_question_header', $insert_header); echo json_encode($insert_header); redirect('Mainx/question_form/success' ); } Some Code Answers<div class="modal-header s-example-modal-sm" aria-labelledby="mySmallModalLabel"> $.ajax({ public function insert_question_header(){ <script type="text/javascript"> $config['csrf_regenerate'] = FALSE; $.ajax({ More Answers Related Post Url 403 Forbidden In Codeigniter 3
php - CodeIgniter 3 - 403 Forbidden on POST from …1 week ago Apr 12, 2021 · POST url 403 forbidden in Codeigniter 3. Ajax request with codeigniter 403 (forbidden) 403 Forbidden Access to CodeIgniter controller from ajax request. etc... php jquery ajax codeigniter. Share. Follow edited Apr 12, 2021 at … Show details › See also: Php Jquery Ajax Codeigniter CodeIgniter 3 - 403 Forbidden on POST from jQuery.ajax() …1 week ago Apr 20, 2021 · CodeIgniter Forums Using CodeIgniter General Help CodeIgniter 3 - 403 Forbidden on POST from jQuery.ajax() asynchronous … Show details › See also: Ajax POST via Ajax returns 403 with CSRF enabled1 week ago Apr 08, 2020 · I've deployed the latest Codeigniter 4.0.2 version and I have an issue when submitting a form with Post method via Ajax when CSRF is enabled, I've tried my best to figure out what is wrong but still no luck. Notice that: - When CSRF is disabled, the Ajax call is successful. - If I don't use Ajax and I enable CSRF, the controller handles ... Show details codeigniter - 403 error with codeignitor - Server Fault1 week ago 3 Answers. Thanks for the tip. I ultimately dealt with the issue by setting up a redirect in CPanel. CodeIgniter uses the Front-Conroller pattern, which means all requests are marshalled through a single controller, in this case index.php. If you don't want that to show up in the URL, you need to setup up rewrites on your server. Show details › See also: Php Codeigniter Please leave your answer here: |