Relative Content

Tag Archive for c#asp.net-coreasp.net-core-webapi

Issue with CORS failing but request succeeding

I’ve set up CORS in the request pipeline in an ASP.NET Core Web Api/ReactJS SPA. Reading the logs I see that the CORS policy is set up correctly but none of the requests are actually failing. For example, where’s the log output for one post request where I’m using an origin that’s not specified in AllowedOrigins:

Issue with CORS failing but request succeeding

I’ve set up CORS in the request pipeline in an ASP.NET Core Web Api/ReactJS SPA. Reading the logs I see that the CORS policy is set up correctly but none of the requests are actually failing. For example, where’s the log output for one post request where I’m using an origin that’s not specified in AllowedOrigins:

Issue with CORS failing but request succeeding

I’ve set up CORS in the request pipeline in an ASP.NET Core Web Api/ReactJS SPA. Reading the logs I see that the CORS policy is set up correctly but none of the requests are actually failing. For example, where’s the log output for one post request where I’m using an origin that’s not specified in AllowedOrigins:

Issue with CORS failing but request succeeding

I’ve set up CORS in the request pipeline in an ASP.NET Core Web Api/ReactJS SPA. Reading the logs I see that the CORS policy is set up correctly but none of the requests are actually failing. For example, where’s the log output for one post request where I’m using an origin that’s not specified in AllowedOrigins:

Issue with CORS failing but request succeeding

I’ve set up CORS in the request pipeline in an ASP.NET Core Web Api/ReactJS SPA. Reading the logs I see that the CORS policy is set up correctly but none of the requests are actually failing. For example, where’s the log output for one post request where I’m using an origin that’s not specified in AllowedOrigins:

Issue with CORS failing but request succeeding

I’ve set up CORS in the request pipeline in an ASP.NET Core Web Api/ReactJS SPA. Reading the logs I see that the CORS policy is set up correctly but none of the requests are actually failing. For example, where’s the log output for one post request where I’m using an origin that’s not specified in AllowedOrigins: