Answers for "laravel mixed content page"

PHP
0

laravel mixed content error

When changing from http to https, it's possible to get the problem Mixed content issue - Content must be served as HTTPS.

So, first modify APP_URL in the .env file, if we use the assets helper, this shouldn't give any problem with the URL.

APP_URL=https://mydomain.com

Finally, add the following to the beginning of api.php or web.php:

if (App::environment('production')) {
    URL::forceScheme('https');
}
Posted by: Guest on August-08-2020
0

mixed content laravel form target

URL::forceScheme('https');  //at the top of the file
Posted by: Guest on May-27-2021

Code answers related to "laravel mixed content page"

Browse Popular Code Answers by Language