-
Notifications
You must be signed in to change notification settings - Fork 292
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的前端项目里进行http请求 #28
Comments
|
1.在每个请求中,藏个鸡贼的地方藏个 ‘秘钥1’ |
好简单的,经常用到,给大家一个思路,img |
iframe |
反向代理+1 |
其中提到, 对应的,在 什么是混合内容? | Web | Google Developers一文中已经做了相关实验,测试了主动和被动的混合内容
所以 iframe、script、xhr 都是不行的但是使用 img 作为被动混合内容可以发送请求, 还有说反代的,请注意审题,把 https 代理到 http 了,还算是「在https的前端项目里进行http请求」吗? |
repost |
get 请求在没有 CSP(Content Security Policy)的考虑上, get 请求都是可以的
反向代理直接反向代理, 比如 nginx 代理, node代理等等 CORS要发请求的域 设置 允许发请求的域(http) CORS 头
|
加上 |
现在img也不行了,我还想用Git pages整点花活G了 |
No description provided.
The text was updated successfully, but these errors were encountered: