Fermin Perdomo

Senior Full Stack Engineer | PHP | JavaScript

How to fix Mixed Content: https error on laravel apps

Fermin Perdomo
January 6, 2025

If you are using a proxy or load balancer (like AWS or Heroku), ensure you trust the proxy by setting AppServiceProvider to handle HTTPS detection:

<?php use Illuminate\Support\Facades\URL; public function boot() { if($this->app->environment('production')) { // Default value should be false for local server URL::forceScheme('https'); } }

Reactions

Loading reactions...
Log in to react to this post.

Comments

Please login to leave a comment.

Newsletter