How to enable CORS in ASP.NET Core and eBook updates


Hello there,

Hope you are doing good.

Distributed architecture is a norm these days. The Front-end, Back-end and the Database tiers are separated into independent deployments to be able to scale as required.

This means that the Front-end and the Back-end run in different servers and generally own different domain names. This leads to a situation where the Front-end requests are naturally blocked by the Back-end framework due to a general policy called CORS.

This week I want to share with you how we enable CORS and handle this scenario using the built-in libraries with an illustrating example. We will also see what a Pre-flight request is, How we can allow all/block all requests by varying the CORS rules.

You can find the link here - https://referbruv.com/blog/setting-up-and-configuring-cors-in-an-aspnet-core-api/

I hope this article will be useful to you.

Please do like on Facebook, we are nearing 2000 likes and your like means a lot. Please do follow on Twitter, I do regularly post my latest updates over there.

My latest ebook - "How to Build a Containerized Angular .NET 6 App with Docker" is nearing its completion. I am so happy and satisfied about how it is turning out to be.

I will come back with more updates and the release date soon. Please do follow me on the Social Channels I mentioned above to stay updated.

Have a great week.

Cheers

Ram

Hi there, I’m Ram

If you're starting in software engineering or an experienced professional, I post informative content around stuff I work with - Full Stack Development. Subscribe to my newsletter to receive my latest posts.

Read more from Hi there, I’m Ram

Hello there, Hope you are doing good. In this week's newsletter, I want to introduce you to the third principle of the SOLID principles: five principles describing few fundamental rules for developing arguably ideal software components which are scalable, extensible, robust and flexible - the Liskov Substitution Principle. This principle can be termed as one of the basic foundations of the Object Oriented Design languages which talks mainly about substitutions and inheritance. The principle...

Hello there, Hope you are doing good. In this week's newsletter I want to introduce you to one of the most efficient internal sorting algorithm, and discuss how to implement it - Quicksort algorithm step by step with an example and analyze time complexity. Quick Sort is an internal sorting technique which can be used to arrange a given set of unordered dataset into required order. It is the most efficient internal sorting technique, which doesn’t use any auxiliary memory (or additional space...

Hello there, Hope you are doing good. In this week's newsletter, I want to introduce you to the fourth principle of the SOLID principles - Interface Segregation. In the early stages of application development, it’s common to place all logic into a single class. As the application grows, these classes become bloated or “fat” with unrelated responsibilities. Later, when we try to extract interfaces from these classes for modularity or extension, we may end up with interfaces containing many...