Why does Laravel redirect to HTTP routes?
I am using Laravel, with Jetpack, using the Livewire scaffolding. The proejct is pretty much a new installation, with only some models/migrations/etc setup but no controllers yet. I haven't changed any default routes.
When I login, I enter my credentials and the POST request sends back a Location header to /dashboard but it does so using an http:// URL instead of an HTTPS one. My vhost in apache is setup with :443 as the port. The URL itself is accessed on an HTTPS domain, with the certificate/DNS hosted by Cloudflare.
When I navigate the site, the dashboad, login, register and home (via logo) links all point to HTTPS. The <form> action on all forms is HTTPS too, and it's not until I actually login or register that it sends the 302 redirect to the http:// version of the URL.
I have the site URL in .env set as https://.
Is this Jetstream (fortify)? I don't think it's Cloudflare because I tried using the dev server IP in my hosts file and skipped Cloudflare completely and it still had the same issue.
If there is any further information I could share I'd be glad to.
Please or to participate in this conversation.