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

hendratanjaya's avatar

[SOLVED] Laravel UI Bootstrap Auth's style not implemented.

I have a Laravel 11 Project using Laravel ui bootstrap --auth. Everything works fine so far except the auth page. The CSS style is not implemented in production, I'm using vercel to deploy my project.

In given views/layouts/app.blade.php file, there is a script:

@vite(['resources/sass/app.scss', 'resources/js/app.js'])

In production it became:

<link rel="preload" as="style" href="http://ecowise-pi.vercel.app/build/assets/app-BaVMVknW.css" />
<link rel="modulepreload" href="http://ecowise-pi.vercel.app/build/assets/app-DCF3fk7r.js" />
<link rel="stylesheet" href="http://ecowise-pi.vercel.app/build/assets/app-BaVMVknW.css" />
<script type="module" src="http://ecowise-pi.vercel.app/build/assets/app-DCF3fk7r.js"></script>

All these links work fine. You can click them and it will show the CSS script, but somehow they are not implemented.

You can check the detail in my github repository: github(.)com/hendratanjaya/ecowisse-group-project-laravel

Or check the live website on : ecowise-pi.vercel.app

sorry, i cant give you a proper link since this is my first day on the platform.

I'm super new to Laravel btw, so any help will be appreciated.

0 likes
1 reply
hendratanjaya's avatar
hendratanjaya
OP
Best Answer
Level 1

UPDATE, I fixed the problem, by adding this script to section on my views/layouts/app.blade.php file,

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

I forgot what the error was called. I think it is about some security issue, but I don't really get it. I found this error by inspecting the page.

Please or to participate in this conversation.