What exactly does the Access-Control-Allow-Credentials header do?
By default, CORS does not include cookies on cross-origin requests. This is different from other cross-origin techniques such as JSON-P. JSON-P always includes cookies with the request, and this behavior can lead to a class of vulnerabilities called cross-site request forgery, or CSRF. In order to reduce the chance of CSRF vulnerabilities in CORS, CORS … Read more