What is CORS?
Cross-Origin Resource Sharing (CORS) is a security mechanism implemented by web browsers. It restricts a website from requesting assets or making API calls to a different domain (origin) than the one serving the web page, unless the target server explicitly allows it by returning specific HTTP headers.