Quantcast
Channel: Off-Topic Posts (Do Not Post Here) forum
Viewing all articles
Browse latest Browse all 14169

Cross Domain WCF post is working on VB.net webapp

$
0
0

Hi,

I am started learn about WCF in vb.net I am able get it work on same domain WCF post using Jquery that is on my www.testsite1.com

And When I try for Cross Domain WCF post  using Jquery It is not working But When I use Get It is working absolutely fine.

But for the POST I am getting an error When I see on Fiddler it was showing  me OPTIONS instead of post and Ihave added some parameters 

     <add name="Access-Control-Allow-Origin" value="*"/>
        <add name="Access-Control-Allow-Headers" value="Content-Type" /> 

Than I am getting this error XMLHttpRequest cannot load testsite2.com/wcfTest.svc/GetDetails. The request was redirected to 'testsite2.com/wcfTest.svc/GetDetails/', which is disallowed for cross-origin requests that require preflight.

I have tried a lot and I found most on C# not on vb.net but I tried to converted to vb.net but still no use.

So Any one Here Could Help me in solving me this problem. I would be very thankful to them.



Viewing all articles
Browse latest Browse all 14169

Trending Articles



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