Tagged: https

Laravel does not load asset via HTTPS

Problem: After turn on HTTPS, Laravel load the assets via HTTP and it cause Google Chrome inspector to pop up a message “…was loaded over HTTPS, but requested an insecure…

Although you access the page via HTTPS but HTTPS page is asked to load a resource over HTTP. In general, simply change the setting in order to load assets via HTTPS.

Solution: for Laravel check out this post, below changes work for me.

Find AppServiceProvider.php and change boot()

    public function boot()
        If (env('APP_ENV') != 'local') {
            $this->app['request']->server->set('HTTPS', true);


If you are just for testing (local environment), simply change APP_ENV checking:

If (env('APP_ENV') == 'local') {
Close Bitnami banner