CORS[cross origin resources sharing]

*Is a way for client web aplication that are loaded in one domain to interacts in a different domain.

If you,re serving public content,you should use cors to open it up for universe in a different domain.Cors standard describes new http header and honor the restrictions they impose.Cors gives web servers cross-domain access control e.g da ta transfere.cors describes new http header which provide browsers and servers a way to request remote urls only when they have permission.

*Mordern browser use cors in an API container such as xmlhttprequest or fetch to mitigate risks of cross-origin http request.