Cross-Origin Resource Sharing (CORS) and WCF

Saturday, July 2, 2011

Yesterday I encountered the following question in the MSDN forums about calling a cross-domain WCF RESTful service from Chrome. The problem with doing the above is because there is a cross-domain call to a WCF service. When you are using Chrome, the browser tries to find out if it can do the call by sending a cross-origin resource sharing (CORS) request, as explained in this article. In IE, you will most likely get a cross-domain exception. After searching the web a bit, I found that the immediate solution is to change the supported HTTP method of the...