Browsers and Mail Allow or Block Third-party Cookies in Microsoft Edge

Microsoft_Edge.jpeg

Microsoft has adopted the Chromium open source project in the development of Microsoft Edge on the desktop to create better web compatibility. This new Microsoft Edge runs on the same Chromium web engine as the Google Chrome browser, offering you best in class web compatibility and performance.

The new Chromium based Microsoft Edge is supported on all versions of Windows 7, Windows 8.1, Windows 10, Windows Server (2016 and above), Windows Server (2008 R2 to 2012 R2), and macOS.

Cookies are small files that websites put on your PC to store information about you and your preferences. Cookies can make your browsing experience better by letting sites remember your preferences or letting you avoid signing in each time you visit certain sites. Cookies can also help a website remember your location, so it can provide you with locally relevant content, like weather. However, some cookies might put your privacy at risk by tracking sites that you visit.

Normally, a cookie's domain attribute will match the domain that is shown in the web browser's address bar. This is called a first-party cookie. A third-party cookie, however, belongs to a domain different from the one shown in the address bar. This sort of cookie typically appears when web pages feature content from external websites, such as banner advertisements. This opens up the potential for tracking the user's browsing history and is often used by advertisers in an effort to serve relevant advertisements to each user.

Microsoft Edge allows all cookies from all websites by default.

See also: Issue with blocking third-party cookies | Microsoft Support

This tutorial will show you how to allow or block third-party cookies in the Chromium based Microsoft Edge.

If cookies are allowed or blocked for all sites using the DefaultCookiesSetting policy, it will also allow or block third-party cookies for all sites.



Contents

  • Option One: Turn On or Off Block Third-party Cookies in Microsoft Edge for Current User
  • Option Two: Force Allow or Block Third-party Cookies for All Sites in Microsoft Edge for All Users using a REG file





OPTION ONE

Turn On or Off Block Third-party Cookies in Microsoft Edge for Current User


1 Open Microsoft Edge.

2 Click/tap on the Settings and more (Alt+F) button (3 dots), and click/tap on Settings. (see screenshot below)

Microsoft_Edge_settings.jpg

3 Click/tap on Cookies and site permissions on the left side, and click/tap on Manage and delete cookies and site data on the right side under "Cookies and data stored". (see screenshot below)

You will need to click/tap on Cookies and site data on the right side instead for the stable channel of Microsoft Edge.

If you do not see a left pane, then either click/tap on the 3 bars menu button towards the top left OR widen the horizontal borders of the Microsoft Edge window until you do.


Third-party_cookies_Microsoft_Edge-1.png

4 Turn On or Off (default) Block third-party cookies for what you want. (see screenshot below)

Turning off Allow sites to save and read cookie data will also turn off and disable the Block third-party cookies setting.


Third-party_cookies_Microsoft_Edge-2.png

5 When finished, you can close the Settings tab if you like.






OPTION TWO

Force Allow or Block Third-party Cookies for All Sites in Microsoft Edge for All Users using a REG file


You must be signed in as an administrator to do this option.

This option does not prevent users from turning on or off the Allow sites to save and read cookie data setting in Microsoft Edge.

This option uses the BlockThirdPartyCookies policy to block web page elements that aren't from the domain that's in the address bar from setting cookies.

If you enable this policy to block third-party cookies, web page elements that are not from the domain that is in the address bar can't set cookies
If you disable this policy to allow third-party cookies, web page elements from domains other than in the address bar can set cookies.
If you don't configure this policy, third-party cookies are enabled but users can change this setting.

The downloadable .reg files below will add and modify the DWORD value in the registry key below.

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge

BlockThirdPartyCookies DWORD

(delete) = Default
0 = Always allow
1 = Always block


1 Do step 2 (allow), step 3 (block), or step 4 (default) below for what you would like to do.


2 To Force Allow Third-party Cookies for All Sites in Microsoft Edge for All Users

This step will turn off and disable changing the Block third-party cookies setting in Option One.

Force_allow_third-party_cookies_Microsoft_Edge.png


A) Click/tap on the Download button below to download the file below, and go to step 6 below.​

Allow_third-party_cookies_in_Microsoft_Edge_for_all_users.reg



3 To Force Block Third-party Cookies for All Sites in Microsoft Edge for All Users

This step will turn on and disable changing the Block third-party cookies setting in Option One.

Force_block_third-party_cookies_Microsoft_Edge.png


A) Click/tap on the Download button below to download the file below, and go to step6 below.​

Block_third-party_cookies_in_Microsoft_Edge_for_all_users.reg



4 Default User Choice to Allow or Block Third-party Cookies for Sites in Microsoft Edge

This is the default setting.

This step will allow users to change the Block third-party cookies setting in Option One.


A) Click/tap on the Download button below to download the file below, and go to step 6 below.​

Default_user_choice_third-party_cookies_in_Microsoft_Edge.reg



5 Save the .reg file to your desktop.

6 Double click/tap on the downloaded .reg file to merge it.

7 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

8 If Microsoft Edge is currently open, then close and reopen Microsoft Edge to apply.

9 You can now delete the downloaded .reg file if you like.


That's it,
Shawn Brink


 

Attachments

  • microsoft_edge_chromium.png
    microsoft_edge_chromium.png
    28 KB · Views: 71
  • Allow_third-party_cookies_in_Microsoft_Edge_for_all_users.reg
    612 bytes · Views: 117
  • Block_third-party_cookies_in_Microsoft_Edge_for_all_users.reg
    612 bytes · Views: 89
  • Default_user_choice_third-party_cookies_in_Microsoft_Edge.reg
    586 bytes · Views: 84
Last edited:
Top