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

ene's avatar
Level 2

livewire component not showing on deployment

when i checked my console got this error please how can I solve this issue

my some of my livewire components are not showing on Deployment

Access to script at 'http://127.0.0.1:5173/resources/js/app.js' from origin 'http://***8.com.ng' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `local`.


Access to CSS stylesheet at 'http://127.0.0.1:5173/resources/css/app.css' from origin 'http://"".com.ng' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `local`.
0 likes
2 replies
ene's avatar
Level 2

any help regarding this

RayC's avatar

Look like you have hardcoded the URL portion for the stylesheet and js file.

Try using asset():

<link href="{{ asset('dealers/assets/css/custom.css') }}" rel="stylesheet" type="text/css" />

Please or to participate in this conversation.