Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable HTTPS #104

Closed
richhauck opened this issue Mar 19, 2018 · 4 comments
Closed

Disable HTTPS #104

richhauck opened this issue Mar 19, 2018 · 4 comments

Comments

@richhauck
Copy link

Because the SSL certificate is self-signed, I've found that Firefox on Mac (I'm running Developer Edition 60.0b4 on macOS 10.13.3) won't permit viewing of the Pilothouse site.

@philipnewcomer
Copy link
Member

philipnewcomer commented Mar 22, 2018

You can add an exception to Firefox so that it will permit the Pilothouse self-signed cert. Just click on Advanced > Add Exception > Confirm Security Exception from the error page. Firefox does not use the macOS certificate store, so the exception that Pilothouse adds at the operating system level isn't recognized by Firefox.

@richhauck
Copy link
Author

Can't do that. Here's what Firefox says:

'This site uses HTTP Strict Transport Security (HSTS) to specify that Firefox Developer Edition may only connect to it securely. As a result, it is not possible to add an exception for this certificate.'

HSTS is not being enforced in my site code.

@philipnewcomer
Copy link
Member

Ah, it looks like I was testing on an older version of Firefox Developer Edition which still left me add an exception for self-signed certificates on sites where HSTS is enabled. I hadn't started Firefox Developer Edition in a while. The current version of FFDE does not allow this.

Exception or not, it's not possible to disable HTTPS for .dev sites, which you originally asked about. That's the whole point of HSTS: the site can only ever be reached over a secure connection. I don't agree with the browser vendor's decisions to enable HSTS for the .dev TLD, but I can't do much about it. This is enforced at the browser level; Pilothouse will still respond to both HTTP and HTTPS requests regardless of what the browser allows you to do.

If you have to use Firefox on your local, you'll need to use a domain name ending in something other than .dev.

@philipnewcomer
Copy link
Member

Related: #94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants