Refused to execute script from 'myfiles.bundle.js.gz' in SharePoint Online Master page

%3CLINGO-SUB%20id%3D%22lingo-sub-1526158%22%20slang%3D%22en-US%22%3ERefused%20to%20execute%20script%20from%20'myfiles.bundle.js.gz'%20in%20SharePoint%20Online%20Master%20page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1526158%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EI%26nbsp%3B%3C%2FSPAN%3Ehave%20created%20a%20bundle%20file%20with%20'compression-webpack-plugin'.%20But%20when%20I%20am%20trying%20to%20use%20in%20SharePoint%20online%20master%20page%2C%20it%20is%20throwing%20an%20error%20%3A%3C%2FP%3E%3CP%3E'Refused%20to%20execute%20script%20from%20'myfiles.bundle.js.gz'%20because%20its%20MIME%20type%20('application%2Fx-gzip')%20is%20not%20executable%2C%20and%20strict%20MIME%20type%20checking%20is%20enabled.'%3C%2FP%3E%3CP%3EHow%20can%20I%20use%20.gz%20file%20in%20SharePoint%20Online%20Master%20page%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EGaurav%20Goyal%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1526158%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Egzip%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Enodejs%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Etypescript%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Contributor

have created a bundle file with 'compression-webpack-plugin'. But when I am trying to use in SharePoint online master page, it is throwing an error :

'Refused to execute script from 'myfiles.bundle.js.gz' because its MIME type ('application/x-gzip') is not executable, and strict MIME type checking is enabled.'

How can I use .gz file in SharePoint Online Master page?

 

Thanks,

Gaurav Goyal

0 Replies