You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/entra/entra-id/app-integration/script-errors-running-msal-net-xbap-app.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,11 @@ ms.custom: sap:Developing or Registering apps with Microsoft identity platform
8
8
---
9
9
# Cookies are disabled error in MSAL.Net XBAP application in Internet Explorer
10
10
11
-
This article describes a problem in which script error is returned when performing Microsoft Entra ID login by using a XAML Browser Application (XBAP) from Internet Explorer.
11
+
This article describes a problem in which a script error is returned when performing Microsoft Entra ID login by using an XAML Browser Application (XBAP) from Internet Explorer.
12
12
13
13
## Symptoms
14
14
15
-
When you run Microsoft Authentication Library for .NET (MSAL.NET) codes similar to the following in a XAML Browser Application (XBAP) from Internet Explorer to perform Microsoft Entra ID login, you may receive a script error warning with the **cookies are disabled** message.
15
+
When you run Microsoft Authentication Library for .NET (MSAL.NET) codes similar to the following in a XAML Browser Application (XBAP) from Internet Explorer to perform Microsoft Entra ID login, you may receive a script error warning with the message **cookies are disabled**.
16
16
17
17
```C#
18
18
stringtenantId="<Tenant ID>";
@@ -62,13 +62,13 @@ try
62
62
```
63
63
## Cause
64
64
65
-
Although XBAP applications run within Internet Explorer, they operate in their own process space: **PresentationHost.exe**. This process is a highly secure container. XBAP applications use the WebBrowser control to host the Microsoft Entra ID login page. To minimize security risks from the browser surface, this container is configured with security restrictions, including blocking cookies. However, the Microsoft Entra ID login process depends on cookies, which causes a script error.
65
+
Although XBAP applications run within Internet Explorer, they operate in their own process space: **PresentationHost.exe**. This process is a highly secure container. XBAP applications use the WebBrowser control to host the Microsoft Entra ID login page. To minimize security risks from the browser surface, this container is configured with security restrictions which include blocking cookies. However, the Microsoft Entra ID login process depends on cookies, which causes a script error.
66
66
67
67
## Solution
68
68
69
-
Configure MSAL.Net to use the [System Browser](/azure/active-directory/develop/msal-net-web-browsers#system-browser-experience-on-net) – Microsoft Edge to launch the Azure AD login page. Thenmake the following updates:
69
+
Configure MSAL.Net to use the [System Browser](/azure/active-directory/develop/msal-net-web-browsers#system-browser-experience-on-net) – Microsoft Edge to launch the Entra ID login page. Then, follow these steps to make the required updates:
70
70
71
-
1. In the Azure portal, locate your app in the **App registrations** page. Register `http://localhost`(required) as a redirect URL under **Mobile and desktop applications** platform.
71
+
1. In the Azure portal, locate your app in the **App registrations** page. Register `http://localhost` as a redirect URL under **Mobile and desktop applications** platform.
0 commit comments