Access to XMLHttpRequest at 'http://*****/.dae' from origin 'http://192.168.198.21:22222' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
打开IIS,找到“HTTP响应标头”点进去,
在右侧可以看到添加,然后添加如下标头即可
Access-Control-Allow-Headers:Content-Type, api_key, Authorization
Access-Control-Allow-Origin:*
手机扫一扫
移动阅读更方便
你可能感兴趣的文章