title: CORS error on signalr with react client set up
body: <p>I am trying to set up signalr with react js and trying to receive value from backend (asp.net), my code are following</p>
  <pre><code>const signalR = require(&quot;@aspnet/signalr&quot;);
  
  
    useEffect(() =&gt; {
     
      const createHubConnection = async () =&gt; {
  
        const hubConnect = new signalR.HubConnectionBuilder()
          .withUrl(&quot;http://82../notificationhub&quot;)
          .configureLogging(signalR.LogLevel.Information)
          .build();
        try {
          await hubConnect.start();
  
        } catch (err) {
          alert(err);
        }
      };
  
      createHubConnection();
    }, []);
  </code></pre>
  <p><code>hubConnect.start()</code> is not working and and I am getting CORS error <code>Access to XMLHttpRequest at 'http://82../notificationhub/negotiate' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.</code>
  <br>
  <br>
  package version in <code>package.json</code>,
  <code>&quot;@aspnet/signalr&quot;: &quot;^1.1.4&quot;,</code></p>
  <p>Full error message</p>
  <p><a href="https://i.stack.imgur.com/RwTRF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RwTRF.png" alt="enter image description here" /></a></p>
  <p>Is there anything from client side I can do ?</p>