Log JavaScript events to a remote logger using CORS.
XMLHttpRequest is subject to the browser's same origin policy in that, for security reasons, requests will only succeed if they are made to the same server that served the original web page.Here is how...