InterviewSolution
Saved Bookmarks
| 1. |
What is CORS in Web API? |
|
Answer» CORS (Cross-Origin Resource Sharing) is basically a mechanism that allows one to MAKE requests from one website to another website in a browser that is normally not allowed by another POLICY CALLED SOP (Same Origin Policy). It SUPPORTS secure cross-origin requests and data transfers among clients or browsers and servers. Here, cross-origin request means requests coming from DIFFERENT origins. CORS simply resolves the same-origin restriction for JavaScript. One can enable CORS for web API using the respective web API package or OWIN middleware. |
|