SoftwareBrothers / adminjs-fastify

MIT License
6 stars 13 forks source link

Assets getting rejected by browser as not having correct content-type #1

Closed yorch closed 2 years ago

yorch commented 2 years ago

When I try to load AdminJS on the Chrome (also tested with Firefox), getting errors on the JS assets:

Refused to execute script from 'http://localhost:3000/admin/frontend/assets/global.bundle.js' because its MIME type ('application/octet-stream') is not executable, and strict MIME type checking is enabled.

image

dziraf commented 2 years ago

Fixed in https://github.com/SoftwareBrothers/adminjs-fastify/pull/2

yorch commented 2 years ago

thanks!