Worker scripts with wrong MIME type will be blocked from loading with Worker() or SharedWorker()

Published: | Categories: DOM, JavaScript, Privacy & Security

Description

Starting with Firefox 70, for security reasons, dedicated and shared worker scripts served with a wrong MIME type will be blocked from loading with Worker() and SharedWorker() respectively. The same change has already been made in Firefox 67 to scripts loaded with importScripts(). Make sure your script files are always served with text/javascript or application/javascript.

References