{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/analytics.js/issues/487","repository_url":"https://api.github.com/repos/segmentio/analytics.js","labels_url":"https://api.github.com/repos/segmentio/analytics.js/issues/487/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/analytics.js/issues/487/comments","events_url":"https://api.github.com/repos/segmentio/analytics.js/issues/487/events","html_url":"https://github.com/segmentio/analytics.js/issues/487","id":110011971,"number":487,"title":"amplitude does not load","user":{"login":"zowers","id":604511,"avatar_url":"https://avatars.githubusercontent.com/u/604511?v=3","gravatar_id":"","url":"https://api.github.com/users/zowers","html_url":"https://github.com/zowers","followers_url":"https://api.github.com/users/zowers/followers","following_url":"https://api.github.com/users/zowers/following{/other_user}","gists_url":"https://api.github.com/users/zowers/gists{/gist_id}","starred_url":"https://api.github.com/users/zowers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zowers/subscriptions","organizations_url":"https://api.github.com/users/zowers/orgs","repos_url":"https://api.github.com/users/zowers/repos","events_url":"https://api.github.com/users/zowers/events{/privacy}","received_events_url":"https://api.github.com/users/zowers/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-06T13:50:38Z","updated_at":"2016-05-09T17:36:17Z","closed_at":"2016-05-04T22:32:22Z","body":"we load scripts with `crossOrigin=\"anonymous\"` as described in https://github.com/jrburke/requirejs/issues/687\r\n```\r\n    var requirejs_createNode = requirejs.createNode;\r\n    requirejs.createNode = function createNodeAddCors( config, moduleName, url ) {\r\n        var node = requirejs_createNode(config, moduleName, url);\r\n        node.crossOrigin = \"anonymous\";\r\n        return node;\r\n```\r\n\r\nBut the https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.4.1-min.gz.js does not load\r\n```\r\nScript from origin 'https://d24n15hnbwhuhn.cloudfront.net' has been blocked from loading by Cross-Origin Resource Sharing policy:\r\nNo 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://our-server.com' is therefore not allowed access.\r\n```\r\n\r\nPlease avoid using global `window.require` or ensure the integration works with `crossOrigin=\"anonymous\"`\r\n"},"comment":{"url":"https://api.github.com/repos/segmentio/analytics.js/issues/comments/217933430","html_url":"https://github.com/segmentio/analytics.js/issues/487#issuecomment-217933430","issue_url":"https://api.github.com/repos/segmentio/analytics.js/issues/487","id":217933430,"user":{"login":"hankim813","id":5907121,"avatar_url":"https://avatars.githubusercontent.com/u/5907121?v=3","gravatar_id":"","url":"https://api.github.com/users/hankim813","html_url":"https://github.com/hankim813","followers_url":"https://api.github.com/users/hankim813/followers","following_url":"https://api.github.com/users/hankim813/following{/other_user}","gists_url":"https://api.github.com/users/hankim813/gists{/gist_id}","starred_url":"https://api.github.com/users/hankim813/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hankim813/subscriptions","organizations_url":"https://api.github.com/users/hankim813/orgs","repos_url":"https://api.github.com/users/hankim813/repos","events_url":"https://api.github.com/users/hankim813/events{/privacy}","received_events_url":"https://api.github.com/users/hankim813/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T17:36:17Z","updated_at":"2016-05-09T17:36:17Z","body":"@djih any idea on this? have you guys heard about this before or know where to look? "}}