gpt4 book ai didi

javascript - Heroku 403 禁止静态 js 文件

转载 作者:数据小太阳 更新时间:2023-10-29 05:38:25 25 4
gpt4 key购买 nike

我已将我的简单 php 应用程序推送到 Heroku 并获得一些 js 文件的 403 状态。

<a href="https://guarded-forest-7267.herokuapp.com/vendor/jquery/dist/jquery.min.js" rel="noreferrer noopener nofollow">https://guarded-forest-7267.herokuapp.com/vendor/jquery/dist/jquery.min.js</a> Failed to load resource: the server responded with a status of 403 (Forbidden)
<a href="https://guarded-forest-7267.herokuapp.com/vendor/jquery-form/jquery.form.js" rel="noreferrer noopener nofollow">https://guarded-forest-7267.herokuapp.com/vendor/jquery-form/jquery.form.js</a> Failed to load resource: the server responded with a status of 403 (Forbidden)
<a href="https://guarded-forest-7267.herokuapp.com/vendor/jquery-validate/dist/jquery.validate.min.js" rel="noreferrer noopener nofollow">https://guarded-forest-7267.herokuapp.com/vendor/jquery-validate/dist/jquery.validate.min.js</a> Failed to load resource: the server responded with a status of 403 (Forbidden)
<a href="https://guarded-forest-7267.herokuapp.com/vendor/jquery.inputmask/dist/inputmask/jquery.inputmask.js" rel="noreferrer noopener nofollow">https://guarded-forest-7267.herokuapp.com/vendor/jquery.inputmask/dist/inputmask/jquery.inputmask.js</a> Failed to load resource: the server responded with a status of 403 (Forbidden)
<a href="https://guarded-forest-7267.herokuapp.com/vendor/modernizer/modernizr.js" rel="noreferrer noopener nofollow">https://guarded-forest-7267.herokuapp.com/vendor/modernizer/modernizr.js</a> Failed to load resource: the server responded with a status of 403 (Forbidden)
<a href="https://guarded-forest-7267.herokuapp.com/vendor/jselector/src/jquery.jselector.js" rel="noreferrer noopener nofollow">https://guarded-forest-7267.herokuapp.com/vendor/jselector/src/jquery.jselector.js</a> Failed to load resource: the server responded with a status of 403 (Forbidden)
<a href="https://guarded-forest-7267.herokuapp.com/vendor/rubber-carousel/dist/jquery.rubber-carousel.min.js" rel="noreferrer noopener nofollow">https://guarded-forest-7267.herokuapp.com/vendor/rubber-carousel/dist/jquery.rubber-carousel.min.js</a> Failed to load resource: the server responded with a status of 403 (Forbidden)
<a href="https://guarded-forest-7267.herokuapp.com/vendor/jmodal/src/jquery.jmodal.js" rel="noreferrer noopener nofollow">https://guarded-forest-7267.herokuapp.com/vendor/jmodal/src/jquery.jmodal.js</a> Failed to load resource: the server responded with a status of 403 (Forbidden)
<a href="https://guarded-forest-7267.herokuapp.com/vendor/scrollReveal.js/dist/scrollReveal.min.js" rel="noreferrer noopener nofollow">https://guarded-forest-7267.herokuapp.com/vendor/scrollReveal.js/dist/scrollReveal.min.js</a> Failed to load resource: the server responded with a status of 403 (Forbidden)

可能是什么问题?

最佳答案

我遇到了同样的问题。这是因为您正试图访问 vendor 目录中的文件。由于某些 heroku 权限问题,无法访问“vendor”文件夹中的静态文件。

我将文件移动到名为“js”的新目录,并重新部署了该应用程序。现在工作正常。

关于javascript - Heroku 403 禁止静态 js 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28684192/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com