请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

百度地图报错

Access to XMLHttpRequest at ‘https://miao.baidu.com/abdr?_o=file%3A%2F%2F’ from origin ‘null’ has been blocked by CORS policy: The value of the ‘Access-Control-Allow-Origin’ header in the response must not be the wildcard ‘*’ when the request’s credentials mode is ‘include’. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
miao.baidu.com/abdr?_o=file%3A%2F%2F:1 Failed to load resource: net::ERR_FAILED
报这个错,但是能加载地图。

正在回答 回答被采纳积分+3

1回答

扬_灵 2022-11-29 08:57:22
同学你好,这个一般是跨域问题,你可以看下这种类型的如何解决,一般是配置跨域就行了,你看下你配置的百度地图的地址是否正确,提供一个文档地址((20条消息) 前端跨域问题的解决方案Access to XMLHttpRequest at ‘http..’ from origin ‘null‘ has been blocked by CORS policy_芒果mmmmg的博客-CSDN博客_access to xmlhttprequest
0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号