How to fix Mixed Content: https error on laravel apps
Fermin Perdomo
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');
}
}
Newsletter
Get new posts delivered straight to your inbox.
Great Tools for Developers
Git Tower
Get Started - It's FreeA powerful Git client for Mac and Windows that simplifies version control.
Mailcoach
Start freeSelf-hosted email marketing platform for sending newsletters and automated emails.
Uptimia
Start freeWebsite monitoring and performance testing tool to ensure your site is always up and running.
Cloudways
Start freeManaged cloud hosting platform that simplifies server management for developers.
Comments
No comments yet. Be the first to share your thoughts.
chat_bubble
Join the conversation — log in to leave a comment.
Log In