Added crossdomain function to core