Fixing cross-domain errors