简体   繁体   English

无法加载资源:部署Css和Js无法正常工作后,服务器响应状态为403(禁止)

[英]Failed to load resource: the server responded with a status of 403 (Forbidden) after Deployment Css & Js not working

1- I have Created a Web application & Locally its Css & Js are working Superbly Fine . 1-我已经创建了一个Web应用程序,并且本地的Css和Js都在Superbly Fine上工作。

2 -But Now i Deployed my Project on server & the CSS & JS is totally bursted after deployment . 2-但是现在我在服务器上部署了我的项目,并且部署后CSS和JS完全破裂了。 3 -Why this is happening What is the Problem . 3-为什么会这样?问题是什么。 the Paths are Correct for the CSS & JS. CSS和JS的路径正确。

Please Help me . 请帮我 。

Regards Deepak Dubey(Software Eingineer) 关于Deepak Dubey(软件工程师)

An HTTP response code of 403 Forbidden means you (the browser) don't have the right credentials to access the ressource. HTTP响应代码403 Forbidden表示您(浏览器)没有正确的凭据来访问资源。

Then, you may want to check the filesystem access rights AND the web server (IIS in your case ?) on the target environment. 然后,您可能要检查目标环境上的文件系统访问权限和Web服务器(在您的情况下为IIS?)。

If the ASP files are showing fine, I believe that : 如果ASP文件显示正常,我相信:

  • you put your static ressources (CSS, JS, images) in a not readable directory, or those files are owned by a different user with no permissions to read by others. 您可以将静态资源(CSS,JS,图像)放在不可读的目录中,或者这些文件是由其他用户拥有的,而没有其他人可以读取的权限。
  • Or, IIS has been told not to provide anything other than *.asp files. 或者,IIS被告知不要提供* .asp文件以外的任何内容。

I'm not a Windows regular user and I won't be aware of the specific manipulations to allow those resources to be delivered. 我不是Windows的普通用户,因此我不会知道允许传递那些资源的特定操作。 If you don't know how to do that, I'll let the next Windows master reader coming here explain it to you. 如果您不知道该怎么做,请让我的下一个Windows Master阅读器向您解释。

Anyways, you may want to update your question tags. 无论如何,您可能要更新您的问题标签。 This has nothing to do with JavaScript or AngularJS, this related to IIS web server and/or filesystem authorizations. 这与JavaScript或AngularJS无关,后者与IIS Web服务器和/或文件系统授权有关。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 完整的日历无法加载资源:服务器的响应状态为403(禁止) - full calendar Failed to load resource: the server responded with a status of 403 (Forbidden) 获取:加载资源失败:服务器响应状态为 403(禁止) - Fetch: Failed to load resource: the server responded with a status of 403 (Forbidden) 无法加载资源:服务器响应状态为 403(禁止访问)MVC 5 - Failed to load resource: the server responded with a status of 403 (Forbidden) MVC 5 无法加载资源:服务器响应的状态为403(禁止)和500(内部服务器错误) - Failed to load resource: the server responded with a status of 403 (Forbidden) and 500 (Internal Server Error) 即使我更改了权限,也无法加载资源:服务器的响应状态为403(禁止) - Even i change permissions i m getting Failed to load resource: the server responded with a status of 403 (Forbidden) 如何修复“加载资源失败:服务器响应状态为 403”? - How fix 'Failed to load resource: the server responded with a status of 403'? 加载资源失败:服务器响应状态为404()Controller.js:1 - Failed to load resource: the server responded with a status of 404 () Controller.js:1 加载资源失败:服务器响应状态为400() React.js - Failed to load resource: the server responded with a status of 400 () React.js JS / AJAX无法加载服务器响应的资源,状态为404(未找到) - JS/AJAX failed to load resource the server responded with a status of 404 (not found) 无法加载资源:服务器响应状态为 400(错误请求)Spring JS 对控制器的调用不起作用 - Failed to load resource: the server responded with a status of 400 (Bad Request) Spring JS call to Controller not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM