IE8/9 (XDomainRequest): throw if cross scheme
This is good. Perhaps we can clean up the error message to simply be XDomainRequest: requests must be targeted to the same scheme as the hosting page. and we can leave the URL in the source as a comment.
XDomainRequest: requests must be targeted to the same scheme as the hosting page.
Done! I will test if you're happy with how this looks.
I had to workaround #202, but it works:
This is great!
If we can see this in our console when testing it it will point us in the right direction. Currently all you see is Access is denied in the IE 9 console and it's very difficult to diagnose what actually happened.
Access is denied
@janua are you saying that in IE9 there's no error message to a line number?
@janua I think he's saying that the error message isn't very helpful because it doesn't say what the error actually is, nor what it is caused by. Just "access is denied".
@ded @OliverJAsh Yep, I get this.
SCRIPT5: Access is denied.
<current path>, line 1 character 1.
Not very helpful at all.
Can we merge this please? Just ran into it again!