跨域错误提示
前端开发中会用到iframe,页面之间互相调用方法,有时候可能出现无法调用的情况,控制台会报如上的错误: access to xmlhttprequest to "xx.xxx.xxx" from origin "xxx.xx.xxx" has been blocked by CORS policy ... 意思是请求被CORS策略阻止,此时就是发生了iframe跨域。
前端开发中会用到iframe,页面之间互相调用方法,有时候可能出现无法调用的情况,控制台会报如上的错误: access to xmlhttprequest to "xx.xxx.xxx" from origin "xxx.xx.xxx" has been blocked by CORS policy ... 意思是请求被CORS策略阻止,此时就是发生了iframe跨域。