If you’ve built any ASP.NET Core Web APIs and then tried to call them from your front-end application, there’s a good chance you’ve run into the dreaded CORS error…

“No Access-Control-Allow-Origin header is present”

Well, to save you (and me!) from having to figure out what code to put in startup.cs to bypass this error, I’ve put together a site to do it for you.

You can enter your API and one or more client URLs and it will generate the exact code you need to pop into your API’s startup.cs to make everything tick.

Head on over to https://corsdot.net to give it a whirl.

Source code, step-by-step tutorials, videos and more

I've compiled a whole load of useful tutorials, source code for articles (like this one) and mini video series to help you push through all the noise and build better ASP.NET web applications, faster.

Drop your email in the box below to get new posts first, and instant access to 'the vault'.

I respect your email privacy. Unsubscribe with one click.