Halo, kalau kamu merasa tulisan saya ngebantu kamu, kamu bisa ucapkan terima kasih lewat saweria .

Hello, if you find this article helpful, you can express your gratitude through saweria .



Problem

The application was running, but it could not be used.

  1. There were no errors in the app, even after enabling debug (and debugbar).

  2. No errors were found in the log (storage/logs/laravel.log).

However, if you enable “Web Developer Tools” and check the “Network” tab, there is an error related to “Mixed Content HTTP & HTTPS.”


How To Solve

  1. Add a new variable to the .env file:
    APP_URL=https://laravel.ipang.my.id
    #add this
    ASSET_URL="${APP_URL}"
    .
    .
    .
    OCTANE_SERVER=roadrunner
    #add this
    OCTANE_HTTPS=true
    
  2. If you still encounter errors, try recompiling your assets (sass, js, media) in the public directory.

Notes:

  1. I haven’t changed anything in the code; I just added a new variable to the .env file and recompiled my assets.

References:

  1. Stackoverflow - Mixed Content (laravel)