How to bypass "connection is not private" on a staging website

Viewed 13

I have a staging website, that is only accessible by changing the hosts file.
This however causes the browsers to throw the error "connection is not private".
The production website obviously does not have said issue.
And having the error message pop up every 30 seconds makes it pretty hard to understand if a bug is caused by the message popping up or not.

Although it is probably irrelevant, the error in question is the following:

NET::ERR_CERT_COMMON_NAME_INVALID

Question
Is there a way to stop the error messages for only that one site?

I am currently testing on Chrome for Android.
I would also like to know if there is a workaround for other browsers, such as Edge and Safari.

0 Answers
Related