header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE");
header('Access-Control-Allow-Headers:x-requested-with,content-type');
PHP解决跨域问题,加入header头
最新推荐文章于 2023-10-09 14:29:10 发布