Worker script served with wrong MIME type will be blocked

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

Description

Starting with Firefox 67, for security reasons, worker scripts served with a wrong MIME type can no longer be loaded into a worker scope using the importScripts method. A similar change has already been made in Firefox 51 for regular JavaScript files. Make sure your script files are always served with text/javascript or application/javascript.

References