c# - prevent cross domain requests to my wcf services -


i use wcf ui services communicate between javacsript (jquery) , server side code. find work effectively.

however want make more secure. can set wcf requests services can made within same domain, prevent external clients making such requests services.

so example, service opertion url http://www.website.com/service.svc/getproducts. want set wcf requests pages in http://www.website.com allowed. presume in realm of cross domain wcf requests need assistance in setting up. great.

this isn't possible if services exposed web.

if services isn't secure enough that, should fixing problem - not trying prevent people making requests.

anyone can use debugging proxy fiddler, charles, etc. or tool wireshark send any data want services - including complete replay of request made via browser. (including referrer http headers, etc).

if situation allows it, perhaps might consider using vpn appliance or similar, , restrict access users inside network (or coming in through vpn). way there less concern security of services.... however it's known fact "internal attackers" prevalent, if not more so, external ones... don't comfy.

let me head argument off @ pass too, while i'm @ it; might suggest browsers prevent cross site scripting that. yes, that's true. developer of other application adding client side script call services - , he/she make request on server side , proxy results along client.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -