当前位置:网站首页>[chrome extender] content_ Cross domain problem of script
[chrome extender] content_ Cross domain problem of script
2022-04-23 02:08:00 【NXY666】
One 、 causes
as everyone knows ,Chrome Browsers have a kind of cross domain restriction Deep obsession , In the use of XMLHttpRequest or fetch When accessing an external website, you must cooperate with the target server . What surprises me is , There is a special article in Google's official documents about how to remove the cross domain restrictions of the extension program .

Two 、 A functional test
According to the document , As long as manifest.json Fill in host_permissions The cross domain restriction can be lifted , It even supports the use of wildcards to lift the cross domain restrictions of all websites .

However , Unfortunately , When I write it in full accordance with the sample code provided by Google , But prompted to be intercepted .


![]()
3、 ... and 、 Hope is dashed
after 5 Hours of searching , I am here Chrome I found an article in my official blog , Completely shattered my fantasy .Changes to Cross-Origin Requests in Chrome Extension Content Scripts
https://www.chromium.org/Home/chromium-security/extension-content-script-fetches/

As part of a broader Extension Manifest V3 effort to improve extension security, privacy, and performance, these cross-origin requests in content scripts will soon be disallowed.
Which translates as :
As a broader Extension list V3 Part of , In order to improve the security of the extension program 、 Privacy and performance , These content scripts (content_script) Cross domain requests in will soon be banned .
Damn security again .
版权声明
本文为[NXY666]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230202551153.html
边栏推荐
- How to write the resume of Software Test Engineer so that HR can see it?
- 配置iptables实现本地端口转发的方法详解
- Redis memory recycling strategy
- Shardingsphere read write separation
- 有哪些常见的代理ip问题?
- 世界读书日 | 技术人不要错过的好书(IT前沿技术)
- 有哪些业务会用到物理服务器?
- Use Xdebug breakpoint debugging in postman
- Open3d point cloud processing
- Nanny level tutorial on building personal home page (II)
猜你喜欢
随机推荐
Common formatting problems after word writing
NPM yarn startup error [resolved]
【汇编语言】从最底层的角度理解“堆栈”
Introduction to micro build low code zero Foundation (lesson 2)
Is the availability of proxy IP equal to the efficiency of proxy IP?
What is an API interface?
Lane cross domain problem
hyperscan --- 1
How does Axure set the content of the text box to the current date when the page is loaded
有哪些业务会用到物理服务器?
How to write the resume of Software Test Engineer so that HR can see it?
从开源爱好者到 Apache 董事,一共分几步?
Flink real-time data warehouse project - Design and implementation of DWS layer
Leetcode39 combined sum
LeetCode 283. Move zero (simple, array) Day12
Quel est le fichier makefile?
010_StringRedisTemplate
什么是api接口?
Uncover floating-point operations hidden by the ARM compiler
都是做全屋智能的,Aqara和HomeKit到底有什么不同?









