Replies: 1 comment 1 reply
-
In I'm guessing that you could probably look at the file extension and explicitly set the content-type header. eg: header('Content-Type: text/html');
header_remove('Content-Type');
+ if (str_ends_with($uri, '.mjs')) {
+ header('Content-Type: text/javascript');
+ } And if that works, you could consider moving it into your own |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
in a project I use PDF.js, and the latest version uses .mjs, but in laravel valet I get this error:
the maintainer of PDF.js and other search results all point at the fact tha nginx is not configured to handle. mjs files, and I can confirm that the mime.types file does not have the .mjs extension included and even adding the .mjs extension to the mime.types file does not work.
What do I need to do to make it work ?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions