带有php头的CORS我有一个简单的PHP脚本,我正在尝试跨域CORS请求:<?php
header("Access-Control-Allow-Origin: *");header("Access-Control-Allow-Headers: *");...但我还是明白了这个错误:请求头字段X-Requested-With不允许Access-Control-Allow-Headers我漏掉什么了吗?
3 回答

慕桂英546537
TA贡献1848条经验 获得超10个赞
header('Access-Control-Allow-Origin: *');header('Access-Control-Allow-Methods: GET, POST'); header("Access-Control-Allow-Headers: X-Requested-With");
添加回答
举报
0/150
提交
取消