Skip to content

Commit 80ef5af

Browse files
committed
apply editorial changes
1 parent 18e89e4 commit 80ef5af

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

support/entra/entra-id/app-integration/script-errors-running-msal-net-xbap-app.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ ms.custom: sap:Developing or Registering apps with Microsoft identity platform
88
---
99
# Cookies are disabled error in MSAL.Net XBAP application in Internet Explorer
1010

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.
1212

1313
## Symptoms
1414

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**.
1616

1717
```C#
1818
string tenantId = "<Tenant ID>";
@@ -62,13 +62,13 @@ try
6262
```
6363
## Cause
6464

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.
6666

6767
## Solution
6868

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. Then make 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:
7070

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.
7272

7373
:::image type="content" source="./media/script-errors-running-msal-net-xbap-app/add-uri.png" alt-text="Application Manifest Key Credentials" lightbox="./media/script-errors-running-msal-net-xbap-app/add-uri.png":::
7474

0 commit comments

Comments
 (0)