CORS stands for Cross-Origin Resource Sharing. It is a security mechanism for restricting requests coming from different origins, hence enables controlled access to resource located outside a given domain. It is critical to properly configure CORS since if poorly configured it provides potential for cross-domain attacks. In this article we…