Anyone here knows laravel?

franklinjframe
FREE

a month ago

I'm working on a Laravel project hosted on Railway. I've already configured AppServiceProvider to force HTTPS in production using URL::forceScheme('https'), and I’ve also set the base URL (app.url, asset_url, etc.) to use https.

The site correctly loads all pages and assets over HTTPS. However, when uploading an image, Laravel still generates a public URL that starts with http:// instead of https://.

The image itself uploads correctly and is displayed without issue, but the generated URL uses HTTP, which leads to mixed content warnings in the browser.

0 Replies

franklinjframe
FREE

a month ago

😔