So, In the last video tutorial, we updated the version of the Angular (ClientApp) application. Now, we will start coding the backend of the Application.
The way, we will code this application is by following a standard sequence of development. We will code the backend with the required Models, API Classes and Methods.
Then we will test all our API Methods using POSTMAN.
We will make sure our API’s our working fine, before we use them in our Angular Application.
So, the First thing, we want to do is Enable CORS, Cross Origin Requests.
What is CORS? Cross-Origin resource sharing (CORS). Also referred to as Cross Origin Requests.
Cross-Origin resource sharing (CORS) is a W3C standard that solves this problem by allowing the relaxation of the same-origin policy.
Most browsers have a built-in security mechanism that prevents web pages from making AJAX requests to other domains.
What I mean by this statement is, the whole Idea to create our Application using web API backend is, to have the capability to consume these API’s in applications that are hosted on different domains.
Here is the Link to Download Code
https://gist.github.com/demonguru18/2...
My Blog
http://techhowdy.com/
#AspNetCore #Angular7 #Bootstrap4 #AspNetCoreWebAPI #EnableCORS