swashata / wp-webpack-script

💥🔥📦👩‍💻 An easy to use, pre configured, hackable webpack setup & development server for WordPress themes and plugins.
https://wpack.io
MIT License
407 stars 57 forks source link

403 Forbidden on vendors script file #1246

Closed S4nG0 closed 2 years ago

S4nG0 commented 2 years ago

Hi,

I've been using wpack.io for a couple of months now and it's the first time I'm getting this error.

There seems to be an issue with my build when uploading to production. The built vendors file gets a 403 Forbidden error. Only that file.

GET https://u-school.fr/wp-content/themes/uschool-new/dist/js/vendors~app-a3f67a33.js net::ERR_ABORTED 403

This does not seem to be a rights issue since all files have the same access rights.

Any clues to what is going on? I have other projects using wpack.io that work completely fine.

S4nG0 commented 2 years ago

This was caused by a custom firewall rule that was blocking specific characters (in that case, ~ was redirected to 403).

All is good now.