Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by tarrent

Hi, I've baked a game and its running 100% okay from localhost. But when I upload it online, this error occurs:

[20:49:36.631] uncaught exception: [Exception... "The operation is insecure." code: "18" nsresult: "0x80530012 (SecurityError)" location: "http://tarrent.webs.com/peashooter/game.min.js Line: 66"]

Here is the link to the game:
http://tarrent.webs.com/peashooter/index.html

This game is from Introducing HTML5 Game Development by the way. Can you please advice me how to resolve this error? Thanks.

1 decade ago by Arantor

The font image http://tarrent.webs.com/peashooter/media/04b03.font.png wasn't found, it gets redirected to another image on a different domain, and the browser chokes on it because it violates an internal security (if you load an image and try to put it in a canvas, it must be on the same domain as the page that loaded the canvas)

1 decade ago by tarrent

Thanks for pointing this out Arantor, just updated the site its ok now. SIlly me to forget the default impactjs font sheet :)

1 decade ago by Arantor

Heh, it doesn't help how your server deals with it ;)
Page 1 of 1
« first « previous next › last »