WCF + jquery / json consume client protection

I'm tired of WCF, to say the least. I need a way to use jQuery ajax to call WCF methods in a cross-domain environment, so it must also be protected.

it is very difficult to find a solution using jquery to work in a cross-domain environment. So far I have founded JsonP with WCF http://msdn.microsoft.com/en-us/library/ee834511.aspx and works in cross-domain mode.

Now, I need a way to protect my WCF methods, which only allow sites that I can use for maintenance.

Windows authentication does not seem to work with JsonP. please help me, knowledge of WCF is beyond me.

Thanks.

+4
source share
1 answer

An easier way to protect your WCF service is to use membership. Here's how to do it:

http://msdn.microsoft.com/en-us/library/ms731049(v=vs.110).aspx

0
source

Source: https://habr.com/ru/post/1389245/


All Articles