“Conteúdo misto Heroku Laravel” Respostas de código

Erro de conteúdo misto de Laravel

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');
}
Cautious Constrictor

Conteúdo misto Heroku Laravel

for laravel, thus should be added to your AppServiceProvider file, founded in your App/Provider/AppServiceProvider directory of your laravel foldert
Delightful Deer

Respostas semelhantes a “Conteúdo misto Heroku Laravel”

Perguntas semelhantes a “Conteúdo misto Heroku Laravel”

Mais respostas relacionadas para “Conteúdo misto Heroku Laravel” em PHP

Procure respostas de código populares por idioma

Procurar outros idiomas de código