当前位置:网站首页>[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
边栏推荐
- Numerical remapping method (remap)
- 我国科学家揭示突破水稻产量瓶颈新机制
- 世界读书日 | 技术人不要错过的好书(IT前沿技术)
- PHP & laravel & master several ways of generating token by API and some precautions (PIT)
- Leetcode40 - total number of combinations II
- 从0开始开发一个chrome插件(2)
- 校园转转二手市场源码
- 使用代理IP是需要注意什么?
- Implementation of Base64 encoding / decoding in C language
- 一些使用代理IP的小技巧。
猜你喜欢

What categories do you need to know before using proxy IP?

简洁开源的一款导航网站源码

如何选择一台好的拨号服务器?

Lane cross domain problem

Leetcode46 Full Permutation

What are the common proxy IP problems?

校园转转二手市场源码

Talk about biology live broadcast: Dr. Wang Ziyuan, a lake view biology, exploring hepatitis B with gene therapy

89 régression logistique prédiction de la réponse de l'utilisateur à l'image de l'utilisateur

动态代理ip的测试步骤有哪些?
随机推荐
想体验HomeKit智能家居?不如来看看这款智能生态
Echo "new password" |passwd -- stdin user name
tp6阿里云短信 window 报 cURL error 60: SSL certificate problem: unable to get local issuer certificate
005_redis_set集合
010_StringRedisTemplate
Is CICC fortune a state-owned enterprise and is it safe to open an account
Lane cross domain problem
简洁开源的一款导航网站源码
PTA: 点赞狂魔
小程序 canvas 画布半圆环
一些使用代理IP的小技巧。
Makefile文件是什麼?
Gray scale range corresponding to colors (red, yellow, green, blue, purple, pink, brick red and magenta) in HSV color space
Why is one plus one equal to two
Quel est le fichier makefile?
php 2022年4月20面试题整理
Shardingsphere sub database and sub table
OJ daily practice - Finish
Dynamic memory management
Common formatting problems after word writing