{"action":"closed","issue":{"url":"https://api.github.com/repos/mapillary/mapillary_issues/issues/2172","repository_url":"https://api.github.com/repos/mapillary/mapillary_issues","labels_url":"https://api.github.com/repos/mapillary/mapillary_issues/issues/2172/labels{/name}","comments_url":"https://api.github.com/repos/mapillary/mapillary_issues/issues/2172/comments","events_url":"https://api.github.com/repos/mapillary/mapillary_issues/issues/2172/events","html_url":"https://github.com/mapillary/mapillary_issues/issues/2172","id":170375629,"number":2172,"title":"Simple script Using MapillaryJS CORS error","user":{"login":"RobyRemzy","id":9057506,"avatar_url":"https://avatars.githubusercontent.com/u/9057506?v=3","gravatar_id":"","url":"https://api.github.com/users/RobyRemzy","html_url":"https://github.com/RobyRemzy","followers_url":"https://api.github.com/users/RobyRemzy/followers","following_url":"https://api.github.com/users/RobyRemzy/following{/other_user}","gists_url":"https://api.github.com/users/RobyRemzy/gists{/gist_id}","starred_url":"https://api.github.com/users/RobyRemzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobyRemzy/subscriptions","organizations_url":"https://api.github.com/users/RobyRemzy/orgs","repos_url":"https://api.github.com/users/RobyRemzy/repos","events_url":"https://api.github.com/users/RobyRemzy/events{/privacy}","received_events_url":"https://api.github.com/users/RobyRemzy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapillary/mapillary_issues/labels/discussion","name":"discussion","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"gyllen","id":268859,"avatar_url":"https://avatars.githubusercontent.com/u/268859?v=3","gravatar_id":"","url":"https://api.github.com/users/gyllen","html_url":"https://github.com/gyllen","followers_url":"https://api.github.com/users/gyllen/followers","following_url":"https://api.github.com/users/gyllen/following{/other_user}","gists_url":"https://api.github.com/users/gyllen/gists{/gist_id}","starred_url":"https://api.github.com/users/gyllen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyllen/subscriptions","organizations_url":"https://api.github.com/users/gyllen/orgs","repos_url":"https://api.github.com/users/gyllen/repos","events_url":"https://api.github.com/users/gyllen/events{/privacy}","received_events_url":"https://api.github.com/users/gyllen/received_events","type":"User","site_admin":false},"assignees":[{"login":"gyllen","id":268859,"avatar_url":"https://avatars.githubusercontent.com/u/268859?v=3","gravatar_id":"","url":"https://api.github.com/users/gyllen","html_url":"https://github.com/gyllen","followers_url":"https://api.github.com/users/gyllen/followers","following_url":"https://api.github.com/users/gyllen/following{/other_user}","gists_url":"https://api.github.com/users/gyllen/gists{/gist_id}","starred_url":"https://api.github.com/users/gyllen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyllen/subscriptions","organizations_url":"https://api.github.com/users/gyllen/orgs","repos_url":"https://api.github.com/users/gyllen/repos","events_url":"https://api.github.com/users/gyllen/events{/privacy}","received_events_url":"https://api.github.com/users/gyllen/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-08-10T09:45:42Z","updated_at":"2016-08-11T01:15:14Z","closed_at":"2016-08-11T01:15:14Z","body":"Hi, i was testing the example from `https://github.com/mapillary/mapillary-js`\r\n\r\n```javascript\r\n<head>\r\n    <script src='https://npmcdn.com/mapillary-js@1.6.0/dist/mapillary-js.min.js'></script>\r\n    <link href='https://npmcdn.com/mapillary-js@1.6.0/dist/mapillary-js.min.css' rel='stylesheet' />\r\n</head>\r\n\r\n<body>\r\n    <div id='mly' style='width: 640px; height: 480px;' />\r\n\r\n    <script>\r\n        var mly = new Mapillary.Viewer(\r\n            'mly',\r\n            '<your client id>',\r\n            '<your photo id for initializing the viewer>'\r\n        );\r\n    </script>\r\n```\r\nOn a Jekyll HTML template:\r\nwhen open on localhost or on [GitHub pages](http://robyremzy.github.io/2016/mapillary-post-view/) i've got the dynamic picture, but when i click on the button Explore, it's doing nothing: \"on FF and Chrome\" see there from this live example hosted on [GitHub](http://robyremzy.github.io/2016/mapillary-post-view/) with a valid `client_id` and `photo_key`.\r\n\r\n\r\n![screeshot](https://raw.githubusercontent.com/RobyRemzy/robyremzy.github.io/master/images/tmp/mapillary-cors.png) \r\n  \r\nconsole message:\r\n\r\n```\r\nhttps://a.mapillary.com/v2/nav/im/_a0bk6u_qhYPQ4lup9dysw?client_id=enpzOU5oNGZIQW1NLTI0T2JrdGFmQTo4MzU4YjE4ZTcwMjVmY2Y5sss Failed to load resource: the server responded with a status of 401 (Unauthorized)\r\n\r\nrobyremzy.github.io/:1 XMLHttpRequest cannot load https://a.mapillary.com/v2/nav/im/_a0bk6u_qhYPQ4lup9dysw?client_id=enpzOU5oNGZIQW1NLTI0T2JrdGFmQTo4MzU4YjE4ZTcwMjVmY2Y5sss. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://robyremzy.github.io' is therefore not allowed access. The response had HTTP status code 401.\r\n\r\nmapillary-js.min.js:19 Uncaught \r\n```\r\nit's seems to be a bad (Cross-Origin Request) with Access-Control-Allow-Origin » missed.\r\n\r\nDo you guys disable that on purpose or i missed something?\r\n"}}
{"actor":{"display_login":"RobyRemzy"}}