1

I got a canvas jQuery pluing script on my tumblr theme,
I got this error on Chrome:

Cross-origin image load denied by Cross-Origin Resource Sharing policy.

Tumblr uploads images to http://static.tumblr.com/
Even there is no different domain between files and account,
Same location, same domain...

But why do I get that error?

Any solution?

Thank you!

Digerkam
  • 1,826
  • 4
  • 24
  • 39

1 Answers1

1

what epascarello said, subdomain != same domain

because you are on the same root-domain you could set the document.domain in your theme to static.tumblr.com if you dont need it for anything else (eg. tracking...)

document.domain = 'static.tumblr.com';

do that as early as can.

hereandnow78
  • 14,094
  • 8
  • 42
  • 48
  • I put it, but I got "Uncaught Error: SECURITY_ERR: DOM Exception 18", where do I need to put it? on "ready"? Thank you! – Digerkam Jan 22 '13 at 19:01
  • Before everything started document.domain equals "username.tumblr.com". It seems that policy doesnt allow subdomain changes. Any idea? – Digerkam Jan 23 '13 at 06:02
  • 1
    i was wrong. you only can set it to the root domain 'tumblr.com'. the would work, if both sides would set it to that root domain. can you post your plugin, and what you are trying to achieve? maybe we can help you in another way... – hereandnow78 Jan 23 '13 at 07:53
  • http://akkara.github.com/MonoJS/ this is my plugin that monolize images. I wanted to use it for background image, but that problem.. I found this: http://www.maxnov.com/getimagedata/ but looks problemly also.. Thank you for response! – Digerkam Jan 23 '13 at 10:35
  • 1
    i dont think that it is possible to work around that issue, at least i dont know, im sorry – hereandnow78 Jan 23 '13 at 16:40