Skip to content
Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune

Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune

Written By Anoop C Nair
Last Updated September 2, 2025
Posted In Intune
SHARE

Hey, let’s learn Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune. The Enable Srccdoc Iframe “Allow-Same-Origin” Sandbox Policy in Microsoft Edge controls how small web pages inside another page (iframes) work with ServiceWorkers. If the policy is enabled or left unset, ServiceWorkers can manage these iframes. If it is disabled, they cannot.

This policy is used in the Microsoft Edge browser. It decides if ServiceWorkers should control iframes with the “allow-same-origin” setting. This makes a difference in how websites run and stay secure. It balances performance and security in Microsoft Edge

The importance of this policy is that it helps keep web browsing safe. Allowing ServiceWorkers can make sites work faster, but sometimes turning it off can protect against risks. It gives organisations a choice between better speed or stronger safety.

For users and organisations, the policy is helpful because it gives control and flexibility. Admins can set it through Intune, making sure browsers stay safe and follow company rules. This keeps data secure and improves web use.

Patch My PC

What are the Advantages of enabling this Policy using Intune?

Enabling the Srccdoc Iframe “Allow-Same-Origin” Sandbox Policy allows ServiceWorkers to manage iframes in Microsoft Edge. This makes websites run more smoothly, improves loading speed, and supports modern web applications effectively.

1. Improves website performance and speed.
2. Allows better control and management of web content.
3. Supports advanced features in modern web apps.
4. Provides a smoother browsing experience for users.


Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune

Before enabling this policy, Microsoft Edge allows ServiceWorkers to control srcdoc iframes that use the “allow-same-origin” sandbox attribute. This helps improve performance by letting ServiceWorkers manage caching and offline access for iframe content, but it also increases some security risks since the iframe gets more access under the same origin.

After enabling (or setting the policy to Disabled), ServiceWorkers are blocked from controlling srcdoc iframes. This improves security and isolation, as the iframe content stays independent, but it reduces performance benefits like faster loading and offline support.

Create a Profile

First, you need to configure this policy. Start by signing in to the Microsoft Intune Admin Center. Then, click on Devices. Under the Devices section, go to the Configuration tab, where you will find a + Create option. Click on it, and you will see 2 options, such as the new policy and the Import policy.

  • Select New policy, and this will open a new window titled Create a profile.
  • Here, you need to enter the Platform and Profile type details.
  • After that, click Create.
Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune - Fig.1
Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune – Fig.1

Basic Tab

The first step is Basics, in this section, you need to enter the basic details of the policy. First, provide an appropriate name(Allow Service Worker to Control Srcdoc Inframes) for the policy .You should also enter a description for better clarity. Then, set the Platform as Windows and click Next.

Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune - Fig.2
Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune – Fig.2

Configuration Settings

After completing the Basics tab, you will move to the Configuration settings. Here, click on the blue + Add settings button. This will open a Settings picker window. Then select the Policy from Settings Picker.

CategorySetting Name
Microsoft EdgeAllow Service Worker to Control Srcdoc Inframes
Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune – Table.1
Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune - Fig.3
Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune – Fig.3

After selecting the settings, close the settings picker window. Now you are on the Configuration Settings main page. You will see that the policy has appeared on your screen. By default, this policy is disabled. If you want to continue with this default setting, you can click Next.

Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune - Fig.4
Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune – Fig.4

Enable Service Worker Policy

By default, this toggle is set to Disabled. To activate the policy, you just drag the toggle from left to right. Once enabled, the toggle will turn blue and change to Enabled. Then click Next to continue.

Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune - Fig.5
Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune – Fig.5

Scope Tag

The next step is the Scope tag. While adding a scope tag to your policy is useful for the organization, it is not a required step. If you choose not to use a scope tag, you can skip this step and proceed by clicking Next to move forward.

Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune - Fig.6
Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune – Fig.6

Assignments

In the Assignments tab, you choose the users or devices that will receive the policy by clicking Add Group under Include Group, select the group that you want to target (e.g Test_HTMD_Policy) and then click Next to continue.

Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune - Fig.7
Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune – Fig.7

Final Step

At the final Review + Create step, we see a summary of all configured settings for the new profile; after reviewing the details and making any necessary changes by clicking Previous. We click Create to finish, and a notification confirms that the “Allow ServiceWorker to control srcdoc iframe” created successfully.

Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune - Fig.8
Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune – Fig.8

Device and User Check-in Status

To view a policy’s status, go to Devices > Configuration in the Intune portal, select the policy (like Allow ServiceWorker to control srcdoc iframe), and check that the status shows Succeeded (1). Use manual sync in the Company Portal to speed up the process.

Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune - Fig.9
Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune – Fig.9

Client Side Verification

To confirm if a policy has been applied, use the Event Viewer on the client device. Go to Applications and Services Logs > Microsoft > Windows > Device Management > Enterprise Diagnostic Provider > Admin. From the list of policies, use the Filter Current Log option and search for Intune event 814

MDM PolicyManager: Set policy string, Policy: (ServiceWorkerToControlSrcdoclframeEnabled)
Area: (microsoft_edqev134~Policy~microsoft_eage), EnrolmenuD requesting merge:
(EB427D85-802F-46D9-A3E2-D5B414587F63), Current User: (Device), String: (),
Enrollment Type: (0x6), Scope: (0x0).

Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune - Fig.10
Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune – Fig.10

How to Remove a Group From ServiceWorker Policy

After creating the policy, if you want to remove the specific group that you previously selected, you can easily do that. First, go to Devices > Configuration policies. In the Configuration policy section, search and select the policy(Allow ServiceWorker to control srcdoc iframe). In the Assignment section, you will find an Edit option and click on it. Then, click the Remove option.

For detailed information, you can refer to our previous post – Learn How to Delete or Remove App Assignment from Intune using by Step-by-Step Guide.

Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune - Fig.11
Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune – Fig.11

How to Delete ServiceWorker Policy from Intune

If you want to delete this policy for any reason, you can easily do so. First, search for the policy name in the configuration section. When you find the policy name, you will see a 3-dot menu next to it. Click on the 3 dots, then click the Delete button.

For detailed information, you can refer to our previous post How to Delete Allow Clipboard History Policy in Intune Step by Step Guide.

Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune - Fig.12
Allow Service Worker in Microsoft Edge to Control Srcdoc Inframes using Intune – Fig.12

Need Further Assistance or Have Technical Questions?

Join the LinkedIn Page and Telegram group to get the latest step-by-step guides and news updates. Join our Meetup Page to participate in User group meetings. Also, Join the WhatsApp Community to get the latest news on Microsoft Technologies. We are there on Reddit as well.

Author

Anoop C Nair has been Microsoft MVP from 2015 onwards for 10 consecutive years! He is a Workplace Solution Architect with more than 22+ years of experience in Workplace technologies. He is also a Blogger, Speaker, and Local User Group Community leader. His primary focus is on Device Management technologies like SCCM and Intune. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security, Career, etc.

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Simplify Windows Devices to Run Only the Required Applications using Intune

Key Takeaways Hey, let’s learn about Simplify Windows Devices to Run Only the Required Applications using Intune. This policy lets administrators replace the default windows shell with a custom or lightweight shell. it improves performance by using system resources and is useful for devices that run a dedicated application. If the policy is disabled or […]

AC Anoop C Nair 8 min read
Intune

Enhance macOS Compliance with Custom Security and Compliance Checks to Improve Device Security using Microsoft Intune

Key Takeaways In this post we are discussing about Enhance macOS Compliance with Custom Security and Compliance Checks to Improve Device Security using Microsoft Intune. Microsoft has announced the general availability of Custom Compliance Settings for macOS in Microsoft Intune. The feature helps organizations strengthen security controls while supporting many types of macOS management scenarios. […]

AC Anoop C Nair 4 min read
Intune

Manage Samsung Galaxy Firmware Versions to Improve Security and Compliance using Microsoft Intune

Key Takeaways In this post we are discussing Manage Samsung Galaxy Firmware Versions to Improve Security and Compliance using Microsoft Intune. Microsoft Intune has received a new update that expands firmware management capabilities for Samsung Galaxy devices through Firmware Versionsintegration. This enhancement gives IT administrators more control over firmware and operating system updates, helping them […]

AC Anoop C Nair 4 min read
Intune

MS Intune Adds Windows Registry Data Collection to Device Inventory for Single Values All Key Values and Subkeys

Key Takeaways Microsoft Intune 2607 introduces Windows Registry Data collection in Device Inventory, allowing IT admins to verify actual device configurations without relying on custom discovery or remediation scripts. Using the Properties Catalog, admins can collect registry information through Single Value, All Values Under a Key (Non-Recursive), or Same Value Across Subkeys. MS Intune Adds […]

AC Anoop C Nair 5 min read