403 Forbidden Access to CodeIgniter controller from ajax request

前端 未结 3 1482
离开以前
离开以前 2020-12-17 06:41

Im having trouble with sending an ajax request to codeigniter controller. It is throwing back a 404 Forbidden Access error. I have found some sort of similar question to thi

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-17 07:26

    Remove the and application/controller from your ajax_processor like,

    var ajax_processor = 'http://localhost/patientcare-v1/index.php/ajax_porcessor/save_physical_info';
    

    If you are hiding index.php from url by using htaccess or routing then try this url,

    var ajax_processor = 'http://localhost/patientcare-v1/ajax_porcessor/save_physical_info';
    

提交回复
热议问题