I've deployed my laravel 10 - livewire 3 apps on local server (office LAN server) but it seems the js assets of livewire did't loaded properly :
Loading failed for the with source “http://10.62.230.18:81/livewire/livewire.js?id=e2b302e9”.
This is my config file of asset url :
'url' => env('APP_URL', 'http://10.62.230.18:81'),
'asset_url' => env('ASSET_URL', 'http://10.62.230.18:81'),
This is my layout page which load the livewire's assets :
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ $title ?? 'WIP' }}</title>
@vite('resources/css/app.css')
</head>
<body>
{{ $slot }}
@stack('scripts')
</body>
</html>
I tried solutions this solution, however it didn't work for me because there is no publishable assets for livewire:assets
How to solve this issue ?
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
to pass.