If you are using Chrome and want to use https on your local server when developing, Chrome will block you unless you have a valid certificate. If you do not have a valid certificate but want to use https on localhost, you will have to bypass Chrome’s check. Here’s how:
- In the address bar type
chrome://flags
. - In the search bar, search for the term
certificates
. - The search result should display
Allow invalid certificates for resources loaded from localhost.
. - Click on the select menu to the right and choose
Enabled
. - Chrome should ask you to restart the browser. If not, restart it manually.
Now you can use https on localhost bypassing Chrome’s check.