SignalR Core 2.2 CORS AllowAnyOrigin() breaking change : <p>To connect via SignalR to an ASP.NET Core 2.1 server from any origin, we had to configure the pipeline as follows:</p>

<pre><code>app.UseCors (
  builder =&gt; builder
   .AllowAnyHeader ()
   .AllowAnyMethod ()
   .AllowAnyOrigin ()
   .AllowCredentials ()
)
</code></pre>

<p>According to <a href="https://docs.microsoft.com/pt-br/aspnet/core/migration/21-to-22?view=aspnetcore-2.2&amp;tabs=visual-studio#update-cors-policy" rel="noreferrer">this</a> document, ASP.NET Core 2.2 no longer allows the combination of AllowAnyOrigin and AllowCredentials, so what would be the solution? Whereas the SignalR Core always sends withCredentials:true in the XMLHtppRequest.</p>

<p>What I need is that from any origin and without credentials, our users can connect to the SignalR Hub.</p>
