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

Laravel don't see that request made over HTTPS #11

Open
antonkomarev opened this issue Jun 1, 2020 · 0 comments
Open

Laravel don't see that request made over HTTPS #11

antonkomarev opened this issue Jun 1, 2020 · 0 comments

Comments

@antonkomarev
Copy link
Collaborator

antonkomarev commented Jun 1, 2020

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 antonkomarev changed the title Laravel don't see HTTPS Laravel don't see that request made over HTTPS Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant