当前位置:网站首页>Solve The problem of Google browser cross-domain has had been blocked by CORS policy: The request The client is not a secure context and The resou
Solve The problem of Google browser cross-domain has had been blocked by CORS policy: The request The client is not a secure context and The resou
2022-07-30 02:52:00 【Pengzai Studio】
A background project developed in the early days needs to read the ID card information through the card reader device in the browser, open it with Google, and report the following cross-domain problem

Access to XMLHttpRequest at 'http://***:19196/OpenDevice&t=0.8008294784459418' from origin 'http://**.cn' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `local`At first, I thought that there was a problem with the code, but I found that it was used normally with the 360 browser, and there was no cross-domain problem, so I checked the relevant information, and finally found that there was a configuration problem after upgrading Google Chrome.
The solution is as follows

Enter Google Chrome and enter the following path in the URL bar to access
chrome://flags/Then enter the following keyword query
Block insecure private network requestsAfter the query, modify it to "Disabled", and restart the Relaunch. After clicking, it will automatically restart the browser.
After restarting, this cross-domain issue was resolved.

边栏推荐
- 解决谷歌浏览器跨域问题has been blocked by CORS policy: The request client is not a secure context and the resou
- 开放地址法哈希实现——线性探测法
- 表达式计算器 ExpressionRunner
- JUC(五):共享带来的问题
- Redis(十) - Redission原理与实践
- The box office broke 790 million US dollars. Have you watched this recent dinosaur movie?
- QT based on the third day (3) widget, dialog and mainwindow
- 音视频开发的正确(学习思路+技术指导)
- 群论-Burnside引理与Polya定理 三千字
- 厉害,腾讯技术专家手撸Redis技术笔记,下载量已突破30W
猜你喜欢
随机推荐
还在用命令行看日志?快用Kibana吧,可视化日志分析YYDS
开放地址法哈希实现——二次探测法
JUC (7): Thread Safety Analysis of Variables
Oracle超全SQL,细节狂魔
复旦-华盛顿大学EMBA科创的奥E丨《神奇的材料》与被塑造的我们
一本通1922——乒乓球
英诺特生物上市市值45亿:年营收降68% 红杉与元生是股东
代码可读性,前置检查、注释及总结
Simple Operations on Sequence
Houdini 地形知识点
B. Inflation-Educational Codeforces Round 103 (Rated for Div. 2)
MIT6.S081 Summary
零代码工具推荐---HiFlow
centOS安装MySQL详解
Hacker News Broadcast | A fake offer steals $625 million
HCIP实验(05)OSPF综合实验
再度入围|“国产化”大潮来袭,汉得助力乘风破浪!
每日优鲜生死劫:被曝清退大部分员工 仍未递交年报(附音频)
运营人必须掌握的6大类26个基本模型
Oracle 迁移至Mysql









