Fix cross-domain issues