Update APP_URL in your .env file with https in the front of it. And make it serve HTTPS in your local too.
HTTPS to local HTTP - how to make login work?(Or, how to properly redirect HTTPS to HTTP?)
I have an domain that is setup with an SSL certificate using Let's Encrypt so it only works via https://example.com/.
This domain is connected via WireGuard tunnel to my home PC which serves the app via local IP 192.168.10.10 without SSL so while developing I simply go to http://192.168.10.10 without certificate.
I used Breeze for the authentication.
Everything works well when I use my app locally via the local IP. But when I go to my domain at https://example.com/ some things don't work. For example login - when I go to https://example.com/login and try to login, it first prompts me the The information you’re about to submit is not secure page because locally Laravel is not using HTTPS. Then when I click Send Anyway it simply refreshes the login page instead of logging in.
Why? And can I do something to make it work?
Update: When I manually write in the login page
<form method="POST" action="https://www. example.com/login">
instead of
<form method="POST" action="{{ route('login') }}">
Then it works from the domain! But then I get 419 | Page Expired from my local login page
Ty
Please or to participate in this conversation.