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

lifesound's avatar

vite error after deploy

I have this error after deploy the app Laravel 9

https://ibb.co/KXvWQDB any idea?

0 likes
4 replies
jlrdw's avatar

Could you show it here instead of a link?

lifesound's avatar

@jlrdw

phplaravel-ee-33.cloudwaysapps.com/:1 Access to script at 'http://127.0.0.1:5173/@vite/client' from origin 'http://phplaravel-834454-34434343.cloudwaysapps.com' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `local`.
client:1          Failed to load resource: net::ERR_FAILED
phplaravel-ee-333.cloudwaysapps.com/:1 Access to CSS stylesheet at 'http://127.0.0.1:5173/resources/css/app.css' from origin 'http://phplaravel-838576-2889316.cloudwaysapps.com' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `local`.
app.css:1          Failed to load resource: net::ERR_FAILED
phplaravel-w33-2883339316.cloudwaysapps.com/:1 Access to script at 'http://127.0.0.1:5173/resources/js/app.js' from origin 'http://phplaravel-333-33333.cloudwaysapps.com' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `local`.
app.js:1          Failed to load resource: net::ERR_FAILED
33```
lifesound's avatar

npm run build

npm run dev

sh: 1: vite: not found

lifesound's avatar
lifesound
OP
Best Answer
Level 17

For reference in cloudways you should have the master account otherwise npm commands will not work

Please or to participate in this conversation.