how to enable cors on your web api

security restrictions on your browser’s security policy prevent your web browser from making ajax requests to a server in another domain. this is also known as same-origin policy. in other words, it is a known fact that browser security prevents a web page of one domain from executing ajax calls on another domain.here's where cors (cross-origin resource sharing) comes to the rescue. cors is a w3c standard that allows you to get away from the same origin policy adopted by the browsers to restric...