localhost using HTTPS
-
Since I first created a WordPress project on my local PC, it has run perfectly well as a testing site. Now, all of a sudden, resources are not being loaded causing the site to fail and make testing it impossible.
On inspecting the site on the Console tab, I see the following:
Failed to load resource: net::ERR_CONNECTION_REFUSED
/devproject/wp-content/themes/oceanwp-child/assets/css/frontpage.css?ver1.3:1When I hover over the file name, it is prefixed by https://localhost/
I’m assuming the https is the problem because localhost does not have a secure certificate.I have entered the following URL into Chrome, and set ‘Allow invalid certificates’ to ‘enabled’, but the problem is still unresolved.
chrome://flags/#allow-insecure-localhost
Allow invalid certificates for resources loaded from localhost EnabledI have done extensive googling and not found a solution to this yet. Is it possible to force Chrome to treat localhost as an http site and so load the resources.
Any advice would be appreciated as I have wasted a good amount of time on this so far.
- The topic ‘localhost using HTTPS’ is closed to new replies.