Fix for XDomainRequest