You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am trying to import the node module scandit-sdk but i get the message «Loading script from .../localhost:5011/vite-dev/@scandit-sdk/... with importScripts() was blocked because of a disallowed MIME type (**)`.
The manufacturer of the package recommended adding the .wasm type to the allowed MIME types with Azure example. And, indeed, there is a .wasm file inside the package, inside the build folder.
But, how to allow a MIME type in rails and/or vite?
Or, could the problem be be something else?
From the rails side i tried something like gem 'mime-types', require: 'mime/types/full' but no change.
The same vendor also provides sample projects that are built with vite, too: github
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there
i am trying to import the node module
scandit-sdk
but i get the message «Loading script from.../localhost:5011/vite-dev/@scandit-sdk/...
with importScripts() was blocked because of a disallowed MIME type (**)`.The manufacturer of the package recommended adding the
.wasm
type to the allowed MIME types with Azure example. And, indeed, there is a.wasm
file inside the package, inside the build folder.But, how to allow a MIME type in rails and/or vite?
Or, could the problem be be something else?
From the rails side i tried something like
gem 'mime-types', require: 'mime/types/full'
but no change.The same vendor also provides sample projects that are built with vite, too: github
Thanks,
Christian
Beta Was this translation helpful? Give feedback.
All reactions