refactor: Add CORS support in ajax.js
refactor: Add CORS support in ajax.js

When making an ajax call supply the property "credentials" and
set it true to make credentialed requests. Code implements the
withCredentials property of the XHR.

{master}[snippets/concepts/ajax]

cgabriel5/snippets,cgabriel5/snippets,cgabriel5/snippets