Avoid malformed URL when testing with crossdomain=true