What is CORS (Cross Origin Resource Sharing) ?

added by JavaScript Kicks
1/4/2020 8:03:14 AM

1600 Views

CORS allows us to break the same origin policy of the browser. It allows to load the resources from different origin. This will be useful when javascript trying to make API Call using XMLHttpRequest or fetch to different domain, it will be blocked by the browser due to same origin policy.


0 comments