Forum Discussion

Gaurav Goyal's avatar
Gaurav Goyal
Brass Contributor
Jul 16, 2020

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

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

No RepliesBe the first to reply

Resources