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

[Question] 重新導向是否能套用在 <script /> 引用的外部資源? #172

Closed
bestpika opened this issue Jul 13, 2020 · 1 comment

Comments

@bestpika
Copy link

bestpika commented Jul 13, 2020

這個網站
https://www.dailyindiegame.com/
有一段
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
我試著寫了一個規則去強制他從 HTTP 重導到 HTTPS
Header Editor
但是我在開發人員工具卻發現他沒有運作
image
請問是這個功能不能套用到這種方式引用的外部資源?
還是我哪裡寫錯?

@sylingd
Copy link
Member

sylingd commented Jul 13, 2020

这是因为浏览器直接屏蔽了HTTPS下的HTTP资源请求。
浏览器屏蔽了对这个资源的请求,也就是说,根本就不存在对这个资源的请求,所以无法重定向。

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

2 participants