jessupjs / lensing

2 stars 1 forks source link

CORS Fail :: CyCIF via Minerva-browser #9

Open jessupjs opened 4 years ago

jessupjs commented 4 years ago

Using Npm links locally for dev (cycif.org -> minerva browser -> lensing) and hitting CORS fail when viewer_aux.addTiledImage({..., opacity: 1}) (also fail via node_modules):

lensing.js:707 Uncaught DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.

*Note: error occurring downstream in lensing

POSS: Headers?

getAjaxHeaders(hashstate, image).then(function (ajaxHeaders) {
  console.log(ajaxHeaders); // '{}' - empty promise :^(
}

Some other Tiled Image properties that might be relevant:

[TiledImage] = {
  [...]
  ajaxHeaders: {},
  ajaxWithCredentials: false,
  crossOriginPolicy: false,

}

EDIT - maybe expecting: