Fix crossdomain handling for ancient server versions