We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
关联 #317 静态资源应该使用相对URL,对于协议的判断不应由后端进行。
Nginx反向代理、CDN代理等都可能使得后端错判协议类型,导致Mixed Content错误,因此后端在非必要的情况下不应当直接指定协议。
使用href="//example.com"代替href="http://example.com"
href="//example.com"
href="http://example.com"
实现: 将
{{ asset('css/app.css') }}
换为
{{ str_replace(['http:', 'https:'], '', asset('css/app.css')) }}
The text was updated successfully, but these errors were encountered:
@HisAtri 大佬,这一句修改在哪个文件,愣是全局搜索都没找见
Sorry, something went wrong.
lsky-pro/resources/views/layouts/app.blade.php
Line 19 in 911275c
No branches or pull requests
关联 #317 静态资源应该使用相对URL,对于协议的判断不应由后端进行。
Nginx反向代理、CDN代理等都可能使得后端错判协议类型,导致Mixed Content错误,因此后端在非必要的情况下不应当直接指定协议。
使用
href="//example.com"
代替href="http://example.com"
实现:
将
换为
The text was updated successfully, but these errors were encountered: