Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Hala's avatar
Level 3

Nova https

how can i add nova https for links in nova since this error appear

The page at***** was loaded over HTTPS, but requested an insecure stylesheet 'http://theme/theme.css'.

0 likes
5 replies
MichalOravec's avatar

Add this to your AppServiceProvider

use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\URL;

public function boot()
{
    if (App::environment('production')) {
        URL::forceScheme('https');
    }

   // other things
}
Hala's avatar
Level 3

yes , it works fine, thank you but still nova color of navbar on https different than http

MichalOravec's avatar

I don't know your css for that, but it's not problem of http or https

Please or to participate in this conversation.