Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In Details i have created a rest wcf service and implemented security while i consume it from same origin then no issue(passing credential in header using datatype json) but when we consume same form different domain then it through error 401 if we use datatype jsonp then i am not able to pass credential in header. also i have google alot but didn't find any better solution.
Posted

1 solution

You will have to use Jsonp format ( not json)

Please refer Consuming Cross-Domain WCF REST Services with jQuery using JSONP[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900