{"action":"created","issue":{"url":"https://api.github.com/repos/rupl/chrisruppel.com/issues/37","repository_url":"https://api.github.com/repos/rupl/chrisruppel.com","labels_url":"https://api.github.com/repos/rupl/chrisruppel.com/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/rupl/chrisruppel.com/issues/37/comments","events_url":"https://api.github.com/repos/rupl/chrisruppel.com/issues/37/events","html_url":"https://github.com/rupl/chrisruppel.com/issues/37","id":144911403,"number":37,"title":"Fix cross-origin issue for photospheres","user":{"login":"rupl","id":254753,"avatar_url":"https://avatars.githubusercontent.com/u/254753?v=3","gravatar_id":"","url":"https://api.github.com/users/rupl","html_url":"https://github.com/rupl","followers_url":"https://api.github.com/users/rupl/followers","following_url":"https://api.github.com/users/rupl/following{/other_user}","gists_url":"https://api.github.com/users/rupl/gists{/gist_id}","starred_url":"https://api.github.com/users/rupl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rupl/subscriptions","organizations_url":"https://api.github.com/users/rupl/orgs","repos_url":"https://api.github.com/users/rupl/repos","events_url":"https://api.github.com/users/rupl/events{/privacy}","received_events_url":"https://api.github.com/users/rupl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rupl/chrisruppel.com/labels/Bug","name":"Bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-31T14:03:23Z","updated_at":"2016-04-01T12:38:01Z","closed_at":"2016-04-01T12:33:14Z","body":"I no longer leave the source directory (`_img` in this repo) in the Heroku slug to decrease its compiled size. All media has been migrated to S3 as of #15 — except I just now realized that photospheres had an issue that I previously overlooked.\r\n\r\nInitially I thought it was the lack of `site.img-host` prefixed on the image path (attempted to fix with ff0239e), but that's not enough. When I redeployed, I saw a new error in Chrome, which is a [years-old issue](http://blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html) that I was unaware of:\r\n\r\n```\r\nphotosphere.min.js:10 DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The cross-origin image at https://chrisruppel-assets-eu1.s3.amazonaws.com/img/photosphere/koh-yao-noi-tour.jpg may not be loaded.(…)\r\n```\r\n\r\nSince I'd rather not fragment where images are stored, I need to fix this CORS issue to restore photospheres."},"comment":{"url":"https://api.github.com/repos/rupl/chrisruppel.com/issues/comments/204381976","html_url":"https://github.com/rupl/chrisruppel.com/issues/37#issuecomment-204381976","issue_url":"https://api.github.com/repos/rupl/chrisruppel.com/issues/37","id":204381976,"user":{"login":"rupl","id":254753,"avatar_url":"https://avatars.githubusercontent.com/u/254753?v=3","gravatar_id":"","url":"https://api.github.com/users/rupl","html_url":"https://github.com/rupl","followers_url":"https://api.github.com/users/rupl/followers","following_url":"https://api.github.com/users/rupl/following{/other_user}","gists_url":"https://api.github.com/users/rupl/gists{/gist_id}","starred_url":"https://api.github.com/users/rupl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rupl/subscriptions","organizations_url":"https://api.github.com/users/rupl/orgs","repos_url":"https://api.github.com/users/rupl/repos","events_url":"https://api.github.com/users/rupl/events{/privacy}","received_events_url":"https://api.github.com/users/rupl/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T12:38:01Z","updated_at":"2016-04-01T12:38:01Z","body":"Seemed a lot easier to just allow Heroku to serve the handful of spheres while leaving all other media on S3. If the number grows too large then this can be re-opened and done properly."}}