Cross-domain

adding code for cross-domain