en-US edge computer user

Enable strict MIME type checking for worker scripts

Verified with Microsoft Edge 152.0.4191.53 — updated on September 2, 2026

Microsoft Edge 152.0.4191.53

Supported on: Microsoft Edge version 150, Windows 7 or later

Path in the GPO console

Computer Configuration\Administrative Templates\Microsoft Edge

Description

This policy controls whether strict MIME type checking is used for worker scripts. If you enable or don't configure this policy, worker scripts use strict MIME type checking for JavaScript. Worker scripts that use legacy MIME types are rejected. If you disable this policy, worker scripts use lax MIME type checking. This allows worker scripts that use legacy MIME types, such as text/ascii, to continue to load and run. Browsers traditionally used lax MIME type checking, which allowed JavaScript resources to load with several legacy MIME types. This behavior can create security risks by allowing resources to load as scripts when they weren't intended to be used that way. Microsoft Edge uses strict MIME type checking by default. Enabling this policy follows the default behavior. Disabling this policy lets admins temporarily retain the legacy behavior for compatibility. For more information about JavaScript and ECMAScript media types, see https://html.spec.whatwg.org/multipage/scripting.html#scriptingLanguage.

Registry

HKLM Software\Policies\Microsoft\Edge
HKCU Software\Policies\Microsoft\Edge

Value name: StrictMimetypeCheckForWorkerScriptsEnabled

Enabled: StrictMimetypeCheckForWorkerScriptsEnabled = 1

Disabled: StrictMimetypeCheckForWorkerScriptsEnabled = 0

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

Scope

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Enable strict MIME type checking for worker scripts
; State: Enabled
; Scope: Computer (HKLM)
; Supported on: Microsoft Edge version 150, Windows 7 or later

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge]
"StrictMimetypeCheckForWorkerScriptsEnabled"=dword:00000001
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Enable strict MIME type checking for worker scripts
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: Microsoft Edge version 150, Windows 7 or later

$path = 'HKLM:\Software\Policies\Microsoft\Edge'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'StrictMimetypeCheckForWorkerScriptsEnabled' -Value 1 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview