Fixes cross domain issue