/#/:1 Failed to load https://6861-hao123-0gfm2ipzcc6c7b7a-1258518529.tcb.qcloud.la/json/two.json: The 'Access-Control-Allow-Origin' header has a value 'https://hao123-0gfm2ipzcc6c7b7a-1258518529.tcloudbaseapp.com' that is not equal to the supplied origin. Origin 'https://hao123-0gfm2ipzcc6c7b7a-1258518529.ap-shanghai.app.tcloudbase.com' is therefore not allowed access.
Access to XMLHttpRequest at 'https://6861-hao123-0gfm2ipzcc6c7b7a-1258518529.tcb.qcloud.la/json/two.json' from origin 'http://123.hwg.cn' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'http://localhost:8080' that is not equal to the supplied origin.
Failed to load https://6861-hao123-0gfm2ipzcc6c7b7a-1258518529.tcb.qcloud.la/json/one.json: The 'Access-Control-Allow-Origin' header has a value 'https://123.hwg.cn' that is not equal to the supplied origin. Origin 'http://localhost:8080' is therefore not allowed access.
一个云开发环境,绑定如下域名。总是只有第一个能正常访问。 且有先后顺序。除非 ctrl+f5强制刷新才能正常。
https://hao123-0gfm2ipzcc6c7b7a-1258518529.tcloudbaseapp.com
https://hao123-0gfm2ipzcc6c7b7a-1258518529.ap-shanghai.app.tcloudbase.com
http://localhost:8080
你好,交流群已解答,这里也同步下,这是你的后端API没有返回默认域名的跨域头。