douziqian2871 2015-09-15 12:46
浏览 146
已采纳

Codeigniter上的Access-Control-Allow-Origin

how can i solve Access-Control-Allow-Origin problem on Codeigniter? I've tried header('Access-Control-Allow-Origin: *'); etc. But no response still have the problem. Need help about this one. Regards.

My PHP codes: http://codepaste.net/r27eua My JS codes: http://codepaste.net/ev35me

  • 写回答

1条回答 默认 最新

  • doubingguan3425 2015-09-15 12:57
    关注

    where do you write the header code? I thing you have to write it on page which will be opened by your request!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?