title: Azure Active Directory Resulting in CORS Error on SignOut
body: <p>I have an ASP MVC Web App that is using Azure AD as a form of login and logout for the users. The App has been registered with Azure AD and the login works flawlessly. </p>
  
  <p>It is important to note that I make use of the OWIN interface for both the Login and Log Out. </p>
  
  <p>The issue is that when I press the logout button on the app the following code executes:</p>
  
  <pre><code>HttpContext.GetOwinContext().Authentication.SignOut(
              OpenIdConnectAuthenticationDefaults.AuthenticationType, 
              CookieAuthenticationDefaults.AuthenticationType);
  </code></pre>
  
  <p>Here the user is logged out successfully but the web page does not redirect to the login page. Instead it results in a CORS error between two Microsoft sites while re-direction from <a href="https://login.windows.net/.../oauth2/logout?post_logout_redirect_uri=" rel="nofollow noreferrer">https://login.windows.net/.../oauth2/logout?post_logout_redirect_uri=</a>... to <a href="https://login.microsoftonline.com/.../oauth2/logout?post_logout_redirect_uri=" rel="nofollow noreferrer">https://login.microsoftonline.com/.../oauth2/logout?post_logout_redirect_uri=</a>...</p>
  
  <p>The CORS error is: Redirect from {url 1} to {url 2} has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="http://localhost:1089" rel="nofollow noreferrer">http://localhost:1089</a>' is therefore not allowed access.</p>
  
  <p>I am a little at a loss whether this is an issue in my app or azure setting as I cannot control this redirection. </p>