Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chrome浏览器将于2023年1月停止使用v2版本的扩展 #23

Open
JimFirst opened this issue Apr 1, 2022 · 3 comments
Open

chrome浏览器将于2023年1月停止使用v2版本的扩展 #23

JimFirst opened this issue Apr 1, 2022 · 3 comments

Comments

@JimFirst
Copy link

JimFirst commented Apr 1, 2022

目前跨域扩展利用的是v2版本的webRequest api,通过修改请求头和响应头使其不会对主机的其他网站造成影响,而该api将在v3版本中废弃。替代的declarativeNetRequest,由于无法读取、修改请求内容,只能靠声明式的规则去扩展应用的网络请求。发送请求时虽然可以通过动态添加规则的手段添加cookie等非安全字段,但由于无法获取响应内容,会导致set-cookie等生效从而影响到主机的其他网站。

@yang131323
Copy link

那有解决方案吗?

@LuYongwang
Copy link

自己随手写了一个. 只简单测试了一下.

https://github.com/LuYongwang/cross-request/releases

@wfion
Copy link

wfion commented Mar 20, 2023

不好用啊,返回的是空json {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants