Skip to content

when ENVIRONMENT=development is set, the server does not work on https #16

Closed
@ylebre

Description

@ylebre

There is an issue with the following bit of code:

/*/ Make sure HTTPS is always used in production /*/
$scheme = 'http';
if (getenv('ENVIRONMENT') !== 'development') {
    $router->map('GET', '/{page:(?:.|/)*}', HttpToHttpsController::class)->setScheme($scheme);
    $scheme = 'https';
}

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions