js ajax界面提示跨域请求PHP解决方案
四个代码,自己了解,万能解决的方法,
header("Access-Control-Allow-Origin:*"); header("Access-Control-Allow-Methods:GET,POST"); header('Access-Control-Allow-Headers:x-requested-with,content-type'); header("Content-Type: text/html; charset=utf-8");
💯扫描二维码推送至手机访问。
💢版权声明:本文由小龟网发布,如需转载请注明出处。
🤗作品 采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可