Skip to content

Commit

Permalink
Allow cross origin URLs for 'panorama'
Browse files Browse the repository at this point in the history
Avoids tainted canvas on export. The even better approach would be to do full CORS.
  • Loading branch information
Dan Lüdtke committed Feb 8, 2015
1 parent c803bde commit 8a9b5f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions photo-sphere-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ var PhotoSphereViewer = function(args) {

var createBuffer = function(pano_data) {
var img = new Image();
img.setAttribute('crossOrigin', 'anonymous');

img.onload = function() {
// No XMP data?
Expand Down

0 comments on commit 8a9b5f7

Please sign in to comment.