I changed APP_URL = https://example.com , I added this to my AppServiceProvider download method:
if(env('REDIRECT_HTTPS')) {
$url->forceSchema('https');
}
And I launched php artisan cache:clear, php artisan view:clearand php artisan config:clear. I still cannot get assets and dynamic routes for using https. Just getting an error:
Mixed Content: A page labeled https://example.com/ 'was loaded via HTTPS but requested an insecure stylesheet' http://example.com/css/app.css '. This request is blocked; content must be transmitted via HTTPS.
I know what I can use secure_assetinstead asset, and this should work, but I need it to be dynamic, because I still need to serve the http version of the site at the moment in a different domain.
source
share