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条代码,自己理解吧,万能方法!

THE END

本站部分文章搜集整理于互联网或者网友提供,如有侵权请联系站长

如若转载,请注明出处:https://www.htmlbk.com/php/2320.html

温馨提示:该文档最后一次修改时间为2022-12-13 17:19:26,请注意相关的内容是否还可用!