php-hyper-builtin-server icon indicating copy to clipboard operation
php-hyper-builtin-server copied to clipboard

Laravel don't see that request made over HTTPS

Open antonkomarev opened this issue 5 years ago • 0 comments

When I'm developing Laravel applications locally I need to add in AppServiceProvider this code:

Illuminate\Support\Facades\URL::forceScheme('https');

Otherwise all routes generated with route() helper will use http:// instead of https://.

@mpyw do you have any ideas how to deal with it without forcing scheme in application?

Here is how I'm running the server:

hyper-run -s localhost:4000 -c ~/cert.pem -t ./public

antonkomarev avatar Jun 01 '20 23:06 antonkomarev