Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCRIPT5 Access is denied for remote SVGs in IE8 and IE9 #18

Open
brunorios1 opened this issue Oct 24, 2014 · 2 comments
Open

SCRIPT5 Access is denied for remote SVGs in IE8 and IE9 #18

brunorios1 opened this issue Oct 24, 2014 · 2 comments

Comments

@brunorios1
Copy link

Hi,

Hi, this excellent plugin works almost perfectly in my project, I'm only having problems to use SVGInjector in IE9.

My SVG files are hosted in Amazon S3 and the IE9 console displays this error:
SCRIPT5: Access is denied. (line 173)

The problem is that IE8 and IE9 don't support standard XMLHttpRequest (line 110).

I think that the problem can be solved using XDomainRequest for IE8 and IE9, based on this article: http://www.leggetter.co.uk/2010/03/12/making-cross-domain-javascript-requests-using-xmlhttprequest-or-xdomainrequest.html

Thank you very much!

@protodave
Copy link
Contributor

Hi Bruno!

  • Haven't seen that in IE9 before... any chance you are testing locally (either by opening files directly in the browser or via a local webserver) and maybe running into some browser security or CORS issues? Do you have a dev site or some sample code I could see? Happy to take a look and help debug the issue.
  • IE8 doesn't support SVG so SVGInjector won't bother trying to do the XMLHttpRequest to get the SVG asset (it jumps right to trying PNG fallbacks, if configured).

@protodave
Copy link
Contributor

Hey Bruno! So this is a CORS issue with IE9, like you said ;}. There is a pull request where we are working to add XDomainRequest support for IE9 to address this. I'll update this issue once that gets sorted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants