mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Disable CORS by default.
This commit is contained in:
parent
f18909d0ec
commit
dbe87d659e
@ -327,8 +327,8 @@ $.Drawer.prototype = /** @lends OpenSeadragon.Drawer.prototype */{
|
|||||||
|
|
||||||
image = new Image();
|
image = new Image();
|
||||||
|
|
||||||
if (_this.crossOriginPolicy !== false) {
|
if ( _this.crossOriginPolicy !== false ) {
|
||||||
image.crossOrigin = _this.crossOriginPolicy;
|
image.crossOrigin = _this.crossOriginPolicy;
|
||||||
}
|
}
|
||||||
|
|
||||||
complete = function( imagesrc, resultingImage ){
|
complete = function( imagesrc, resultingImage ){
|
||||||
|
@ -409,7 +409,7 @@
|
|||||||
*
|
*
|
||||||
* @property {Number} [collectionTileSize=800]
|
* @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
|
* Valid values are 'Anonymous', 'use-credentials', and false. If false, canvas requests will
|
||||||
* not use CORS, and the canvas will be tainted.
|
* not use CORS, and the canvas will be tainted.
|
||||||
*
|
*
|
||||||
@ -727,7 +727,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
tileSources: null,
|
tileSources: null,
|
||||||
tileHost: null,
|
tileHost: null,
|
||||||
initialPage: 0,
|
initialPage: 0,
|
||||||
crossOriginPolicy: 'Anonymous',
|
crossOriginPolicy: false,
|
||||||
|
|
||||||
//PAN AND ZOOM SETTINGS AND CONSTRAINTS
|
//PAN AND ZOOM SETTINGS AND CONSTRAINTS
|
||||||
panHorizontal: true,
|
panHorizontal: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user