The page Http request automatically becomes an Https request, record it

The Http request on the page is automatically changed to an Https request. There is no problem with local direct browsing, but uploading to the server to browse and access resources becomes invalid. It turns out to be HTTPS. Why is this?

There is the following code in the head of html

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

code explanation

The function is to automatically convert the resources loaded in the site (css, js, pictures and other resources) from http to https.


If you don't need it, delete or block it to solve the problem.

Guess you like

Origin blog.csdn.net/q906270629/article/details/131399352