Electron常见问题 41 - blocked by CORS policy: The ‘Access-Control-Allow-Origin‘ header contains
日期: 2020-11-05 分类: 跨站数据测试 494次阅读
目录
问题
Electron新建一个BrowserWindow窗口,加载URL地址,提示如下报错:
Access to fetch at 'https://sentry.boom.cn/api/5/store/?sentry_key=b2dff9e…&sentry_version=7' from origin 'https://client-test.baijiayun.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values 'https://client-test.baijiayun.com, *', but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
截图:
Data-Mining
CSDN博客专家
敲代码,搞开发。本人深耕音视频技术,走全栈路线,前后端通吃,兼顾各端与流媒体服务器。博客主页地址:https://liuzhen.blog.csdn.net/。欢迎沟通交流学习!
除特别声明,本站所有文章均为原创,如需转载请以超级链接形式注明出处:SmartCat's Blog
精华推荐