title: Communicating between React and Asp.net core project
body: <p>I am getting this error when i try and connect my react project to my asp.net core 3 back end</p>
  <pre><code>No 'Access-Control-Allow-Origin' header is present on the requested resource
  </code></pre>
  <p>I have up this is my startup method ConfigureServices</p>
  <pre><code>   services.AddCors(options =&gt;
          {
              options.AddPolicy(&quot;AllowOrigin&quot;,
                  builder =&gt; builder.AllowAnyOrigin());
          });
  </code></pre>
  <p>And I have also put this is the startup config method aswell</p>
  <pre><code> app.UseCors(&quot;AllowOrigin&quot;);
  </code></pre>