jpillora / xdomain

A pure JavaScript CORS alternative
https://jpillora.com/xdomain/
3.12k stars 270 forks source link

IE9 Developer Console login problem #191

Open psychpsych opened 8 years ago

psychpsych commented 8 years ago

Hello, There is a strange problem for my site. I'm using AngularJS and satellizer for auth/login settings.

And I'm using xdomain for login in IE9. Well, if developer console is open on the browser, I can login to the site. But if not, I cannot login.

I cannot debug because this problem. What's the problem? How can I fix it?

ammojamo commented 7 years ago

This error can happen if your code calls console.log(). In IE9, console is only defined if the developer tools are open, otherwise you get an error. Very annoying heisenbug, but easily fixed by creating a dummy console object.

jesujcastillom commented 6 years ago

This script worked for me

image

It must be loaded before any script that makes a call to console.* function is loaded, since ie9 silently fails on this error.