I have a WCF web service and jQuery AJAX implementation that appears to be working perfectly, save for a single line of code: the AJAX calls to the WCF service only have the correct HTTP header & content information if I use GET in my AJAX calls. Once I choose to use POST, the WCF service response with "Method Not Allowed". The calls are coming from domains such as sub1.domain.com, and calling svc.domain.com. How can I configure WCF to allow the cross domain AJAX POSTs?
Here's my WCF interface:
<ServiceContract(SessionMode:=SessionMode.Allowed)> _
Public Interface IProductInfo
<OperationContract()> _
<ScriptMethod(UseHttpGet:=True, ResponseFormat:=ResponseFormat.Json, XmlSerializeString:=False)> _
<WebInvoke(Method:="GET", BodyStyle:=WebMessageBodyStyle.Wrapped, ResponseFormat:=WebMessageFormat.Json)> _
Fun ...
Go to the complete details ...