将headerAccess-Control-Allow-Origin ;添加到下面代码中进行优化!DOCTYPE htmlhtmlhead title查询界面title style body font-family Arial sans-serif; background-color #f4f4f4;
在代码中添加header('Access-Control-Allow-Origin: *'),可以在fetch请求时允许跨域请求,代码如下:
原文地址: https://www.cveoy.top/t/topic/ZLw 著作权归作者所有。请勿转载和采集!