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


I have application on ASP.NET CORE 5.0. The application is served over admin.vizz.az. I get the error Failed to load resource: net::ERR_CONNECTION_TIMED_OUT. This is not a browser issue. An error associated with a code or server. 2 Javascript files cannot be read by html.

Debug time works great. The problem occurs when I publish via IIS

My HTML head

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

MY javascript addresses



My Error

enter image description here


I don’t know how to solve it. Your help will be appreciated Thanks


I used additional tag in HTML plugin. This forces the protocol of all forwarded links to https.

Uninstalling it worked for me

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

Answered By – Emin Niftiyev

Answer Checked By – Cary Denson (BugsFixing Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *