(bug 19907) Adds support for cross-domain AJAX requests to the API.