Reputation: 89
I'm using 'FileMaker Pro' to show 'three.js' drawing with texture. All is fine inside FMP client, but as soon as I open it in WebDirect, I'm getting this error:
SecurityError (DOM Exception 18): The operation is insecure.
I load 'THREE.JS' from http like this (<> are removed): script type='text/javascript' src='http://remote.plancher2000.com/three.js-master/build/three.js'/script
I load textures from JavaScript like this: var floorMaterial = new THREE.MeshBasicMaterial( { map: 'http://remote.plancher2000.com/Escaliers%203D/1-3-2-5-Plancher.jpg' } );
They are both from the same server AND port. Any clue? Thank you.
Upvotes: 3
Views: 3576
Reputation: 89
In Safari, I found out that you can disable this restriction. In the Development menu (you may need to activate it), look for 'Disable local file restrictions'.
Some similar setting may exist for other browsers.
Upvotes: 2