Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 71679

Forum Post: RE: Access external web service using HTML Web Resource

$
0
0
Hi Nikki These options will need to be added to the receiving web service not on your call (CORS and cross domain issues) web service headers (receiving) not on your javascript call XMLHttpRequest.setRequestHeader("Content-Type", "application/json; charset=utf-8"); // to include only your domain and all domains, filter who can connect, in this case CRM Online only XMLHttpRequest.setRequestHeader("Access-Control-Allow-Origin", " *.crm.dynamics.com "); // Allows to everything to connect to the web service XMLHttpRequest.setRequestHeader("Access-Control-Allow-Origin", " * "); XMLHttpRequest.setRequestHeader("Access-Control-Allow-Credentials", "true"); XMLHttpRequest.setRequestHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS"); XMLHttpRequest.setRequestHeader("Access-Control-Allow-Headers", "Origin, Accept, Content-Type, X-Requested-With, X-CSRF-Token");*/ I had created the same type of integration and we requested the web service development team to include those headers in PHP, after the changes added and have it available publicly, the request worked correctly abe

Viewing all articles
Browse latest Browse all 71679

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>