Skip to content

Commit

Permalink
Merge pull request #1 from danrl/danrl-patch-cross-origin
Browse files Browse the repository at this point in the history
Allow cross origin URLs for 'panorama'
  • Loading branch information
JeremyHeleine committed Feb 14, 2015
2 parents c803bde + 8a9b5f7 commit bff2c02
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 bff2c02

Please sign in to comment.