无法加载资源 net::ERR_CONNECTION_TIMED_OUT。我的服务器或代码中的错误

Failed to load resource net::ERR_CONNECTION_TIMED_OUT. ERROR in my Server or Code

我申请了 ASP.NET CORE 5.0。该应用程序在 admin.vizz.az 上提供服务。我收到错误 Failed to load resource: net::ERR_CONNECTION_TIMED_OUT。这不是浏览器问题。与代码或服务器相关的错误。 2 Javascript 个文件无法被 html 读取。

调试时间效果很好。当我通过 IIS

发布时出现问题

我的HTML头

<html>
    <head>
            <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
            <style>
                #map {
                    height: 100%;`enter code here`
                    /* The height is 400 pixels */
                    width: 100%;
                    /* The width is the width of the web page */
                }
            </style>
            <script src="~/js/API.js"></script>
            <script src="~/js/ChangeLoc.js"></script>
        </head>
    </html>

我的 javascript 地址

APİ.js

ChangeLoc.js

我的错误

问题

不知道怎么解决。感谢您的帮助谢谢

我在 HTML 插件中使用了附加标签。这会强制所有转发链接的协议为 https。

卸载对我有用

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">