title: Blazor WASM Standalone: 404 error on Logout using AD B2C and MSAL
body: <p>I have a Blazor 5 client-side application using AD B2C and MSAL that throws a 404 error when calling /authentication/logout-callback.</p>
  <p><a href="https://i.stack.imgur.com/htAoC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/htAoC.png" alt="Blazor B2C MSAL Logout Error" /></a></p>
  <p>When running the app locally this works as expected.  This issue occurs when deploying the app to Azure Blob storage as a static site.  Login works as expected when deployed to Blob storage static sites and logging out actually works, if you manually navigate back to Home from the 404 page, the user is logged out.</p>
  <p>Within the Azure AD B2C app registration the following are set:</p>
  <ul>
  <li><p>API Permissions for Microsoft
  <a href="https://i.stack.imgur.com/B6Hjz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B6Hjz.png" alt="Azure AD B2C App Registration API Permissions" /></a></p>
  </li>
  <li><p>Authentication Redirect URIs
  <a href="https://i.stack.imgur.com/EV3sq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EV3sq.png" alt="Azure AD B2C App Registration Redirect URIs" /></a></p>
  </li>
  </ul>
  <p>The following is the app configuration.
  <a href="https://i.stack.imgur.com/EWkYQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EWkYQ.png" alt="enter image description here" /></a></p>
  <p>The app was created using the following template without any additional modifications:</p>
  <blockquote>
  <p>dotnet new blazorwasm -au IndividualB2C --aad-b2c-instance &quot;${AAD B2C INSTANCE}&quot; --api-client-id &quot;${SERVER API APP CLIENT ID}&quot; --app-id-uri &quot;${SERVER API APP ID URI}&quot; --client-id &quot;${CLIENT APP CLIENT ID}&quot; --default-scope &quot;${DEFAULT SCOPE}&quot; --domain &quot;${TENANT DOMAIN}&quot; -ho -o &quot;${APP NAME}&quot; -ssp &quot;${SIGN UP OR SIGN IN POLICY}&quot;</p>
  </blockquote>
  <p>Why is the app generating a 404 error when logging out?  I'm not sure if this is a configuration issue within the app, Azure B2C, or something related to Azure Blob static sites.</p>
  <p>Is there a way to retrieve error debug information on the RemoteAuthenticatorView component? Chrome's DevTools doesn't provide much insight.
  <a href="https://i.stack.imgur.com/p05za.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p05za.png" alt="enter image description here" /></a></p>