ajax和PHP接口交互時 用post方式會出錯,get不會跨域問題添加了:header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:POST,GET,OPTIONS,DELETE');
header('Access-Control-Allow-Headers:x-requested-with,content-type,requesttype');
但是POST方法還是不行,這是為什么~~~
添加回答
舉報
0/150
提交
取消
