-
Notifications
You must be signed in to change notification settings - Fork 7
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
when ENVIRONMENT=development is set, the server does not work on https #16
Comments
That code was originally created to enable development before a (Docker) HTTPS server was available as the internal PHP HTTP server does (explicitly) not support HTTPS. It might be more sensible to change the |
Maybe we can just check for env http or https to make it explicit? and even add routes for both schemes. |
Strictly speaking, there shouldn't be any HTTP at all. It should just always redirect to HTTPS. At this point, I'm inclined to just remove the HTTP code entirely... |
I agree, having a secure default is the better option here, so we could just remove the http scheme completely. If someone really needs http:// it should be easy enough to modify that in the code. |
We had a discussion offline, the current conclusion is as follows:
This means that unsafe (i.e. HTTP) URLs are supported, in case HTTPS is provided through a server-side proxy. The question that remains is whether it makes more sense to have the HTTPS check on or off. Thoughts? @ylebre / @poef / @michielbdejong |
There is an issue with the following bit of code:
I would expect https to work as well with the development environment, but because all the routes are tied to $scheme, they are only available on http.
The text was updated successfully, but these errors were encountered: