Configuration Update for Livewire v3 on CloudPanel Nginx

Go to the Vhost section on CloudPanel, inside the Nginx Server { ... } below location ~ \.php$ { ... }add the following configuration lines:

location ~* ^.+\.(css|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf|map)$ { add_header Access-Control-Allow-Origin "*"; expires max; access_log off; }

This configuration removes |js so that livewire.js can be served through web request.

User Discussion
0 Discussion

Latest Discussions