Added code for cross domain access
Test with remote server