-
-
Notifications
You must be signed in to change notification settings - Fork 613
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
是否应使用协议相对URL指示静态资源 #778
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
关联 #317 静态资源应该使用相对URL,对于协议的判断不应由后端进行。
Nginx反向代理、CDN代理等都可能使得后端错判协议类型,导致Mixed Content错误,因此后端在非必要的情况下不应当直接指定协议。
使用
href="//example.com"
代替href="http://example.com"
实现:
将
换为
The text was updated successfully, but these errors were encountered: