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

把https 转发到 本地使用 127.0.0.1 失效? #59

Open
tuihou123321 opened this issue Jun 29, 2021 · 2 comments
Open

把https 转发到 本地使用 127.0.0.1 失效? #59

tuihou123321 opened this issue Jun 29, 2021 · 2 comments

Comments

@tuihou123321
Copy link

把https 转发到 本地使用 127.0.0.1 失效

掘金首页:https://juejin.cn/

`

{
"proxy": [
[
"https://api.juejin.cn/recommend_api/v1/article/recommend_all_feed",
"http://127.0.0.1:8084/json/recommend_all_feed.json"
]
],
"cors": [
"127.0.0.1"
]
}

`

@wushanchao
Copy link

因为chrome最新版本对跨域的权限锁紧,建议组合改变浏览器跨域设置的插件
https://chrome.google.com/webstore/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf/related?hl=zh-CN
一起使用

@ningbowang
Copy link

因为chrome最新版本对跨域的权限锁紧,建议组合改变浏览器跨域设置的插件 https://chrome.google.com/webstore/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf/related?hl=zh-CN 一起使用

我使用chrome版本: 108.0.5359.99, 该方式对我的使用场景无效.

我的使用场景: 浏览器访问线上环境, 拦截请求到本机开发环境进行debug
目前尝试了一种方式成功了, 原文链接

步骤
  1. 新建文件夹 C:\MyChromeUserData
  2. 新建chrome快捷方式, 右键属性, "目标" 后追加 --allow-file-access-from-files --user-data-dir="C:\MyChromeUserData" --disable-web-security (开头有空格)

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

3 participants