title: Identity Server 4 - Allowed Origins configured and origin is not allowed
body: <p>I have a SPA and API in the same project and I keep getting the following errors when I make a request to the API.</p>
  <pre><code>AllowedOrigins configured and origin http://localhost:5000 is not allowed
  CorsPolicyService did not allow origin: http://localhost:5000
  </code></pre>
  <p>The path to the api is: <code>http://localhost:5000</code>. I made sure I have the origin specified in the <code>ClientCorsOrigins</code> table for the client and I also added a policy in my <code>Startup.cs</code>:</p>
  <pre><code>services.AddCors(options =&gt;
              {
                  options.AddPolicy(&quot;default&quot;, policy =&gt;
                  {
                      policy.WithOrigins(&quot;http://localhost:5000&quot;)
                          .AllowAnyHeader()
                          .AllowAnyMethod();
                  });
              });
  </code></pre>
  <p>I've checked the docs and configuration multiple times and I can't figure out why I'm having this issue when I have the origin specified in the ClientCorsOrigins table. I'm using Google Chrome.</p>