title: identityserver4 Correlation failed
body: <p>Recently I'm learning idenetty server 4, I organized a  <a href="https://github.com/sdwdjzhy/TestId4" rel="nofollow noreferrer">test project in github</a></p>
  <p>env: windows 10, edge
  edge: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36 Edg/88.0.705.56</p>
  <pre><code>   services.AddAuthentication(options =&gt;
          {
              options.DefaultScheme = &quot;Cookies&quot;;
              options.DefaultChallengeScheme = &quot;oidc&quot;;
          })
          // 添加可以处理cookie的处理程序
          .AddCookie(&quot;Cookies&quot;)
          // 用于配置执行OpenID Connect协议的处理程序
          .AddOpenIdConnect(&quot;oidc&quot;, options =&gt;
          {
              options.Authority = &quot;https://demo.identityserver.io/&quot;;    // 受信任令牌服务地址
              options.RequireHttpsMetadata = true;
              options.ClientId = &quot;interactive.confidential&quot;;
              options.ClientSecret = &quot;secret&quot;;
              options.ResponseType = &quot;code&quot;;
              options.SaveTokens = true;  // 用于将来自IdentityServer的令牌保留在cookie中
  
              // 1、添加授权访问api的支持
              //options.Scope.Add(&quot;scope1&quot;);
              options.Scope.Add(&quot;email&quot;);
              //options.Scope.Add(&quot;profile&quot;);
              options.GetClaimsFromUserInfoEndpoint = true;
              //options.Scope.Add(&quot;offline_access&quot;);
              options.TokenValidationParameters = new TokenValidationParameters
              {
                  NameClaimType = &quot;name&quot;,
                  RoleClaimType = &quot;role&quot;
              };
          });
  </code></pre>
  <p>The problem is that I have logged in and authorized successfully, but when I jump back, the following error will appear</p>
  <pre><code>Exception: Correlation failed.
  Unknown location
  
  Exception: An error was encountered while handling the remote login.
  Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler&lt;TOptions&gt;.HandleRequestAsync()
  </code></pre>
  <p>After that, I saw some questions about cookies. I added a <code>ConfigureNonBreakingSameSiteCookies</code>, but it still didn't work</p>
  <p>when I disabled edge config <code>Cookies without SameSite must be secure</code>, it success.</p>
  <p>the question is <code>Is there any other way?</code></p>
  <p>If anyone can provide me some insight on this, I would greatly appreciate it.</p>