我建立了一个流媒体广播网站并在这里放入Heroku:https://radiatelaravel-new.herokuapp.com/(警告:声音自动播放)。
当我从他的域进行URL转发到此link时,它不会加载任何CSS / JS文件。
我在控制台中遇到的错误是:
Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR /css/app.css
Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR /css/visualize.css
Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR app.js
Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR jquery.min.js
Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR dat.gui.min.js
Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR visualize.js
Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR main.js
全部使用PHP / Laravel和HTML / CSS / JS编写。加载我的样式表和JS文件的代码如下所示:
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
<link href="{{ asset('css/styles.css') }}" rel="stylesheet">
<script src="{{ asset('js/app.js') }}"></script>
<script src="{{ asset('js/jquery.min.js') }}"></script>
<script src="{{ asset('js/dat.gui.min.js') }}"></script>
<script src="{{ asset('js/visualize.js') }}"></script>
任何想法/解决方案?
答案 0 :(得分:0)
<link href=" css/app.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<script src="js/app.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/dat.gui.min.js"></script>
<script src="js/visualize.js"></script>