From dbe87d659e98e316f4b8023c047f8fb8d1a7dfe0 Mon Sep 17 00:00:00 2001 From: Antoine Vandecreme Date: Mon, 7 Apr 2014 16:59:48 -0400 Subject: [PATCH] Disable CORS by default. --- src/drawer.js | 4 ++-- src/openseadragon.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/drawer.js b/src/drawer.js index b24bd3f6..1c7ad229 100644 --- a/src/drawer.js +++ b/src/drawer.js @@ -327,8 +327,8 @@ $.Drawer.prototype = /** @lends OpenSeadragon.Drawer.prototype */{ image = new Image(); - if (_this.crossOriginPolicy !== false) { - image.crossOrigin = _this.crossOriginPolicy; + if ( _this.crossOriginPolicy !== false ) { + image.crossOrigin = _this.crossOriginPolicy; } complete = function( imagesrc, resultingImage ){ diff --git a/src/openseadragon.js b/src/openseadragon.js index 2ce0a042..49ed0fa9 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -409,7 +409,7 @@ * * @property {Number} [collectionTileSize=800] * - * @property {String} [crossOriginPolicy='Anonymous'] + * @property {String|Boolean} [crossOriginPolicy=false] * Valid values are 'Anonymous', 'use-credentials', and false. If false, canvas requests will * not use CORS, and the canvas will be tainted. * @@ -727,7 +727,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){ tileSources: null, tileHost: null, initialPage: 0, - crossOriginPolicy: 'Anonymous', + crossOriginPolicy: false, //PAN AND ZOOM SETTINGS AND CONSTRAINTS panHorizontal: true,