Fixes cross-domain issue