-2

How do i avoid calling a webservice from other domain?

I want my webservices to be hidden from other projects / domain?

user3102360
  • 1
  • 1
  • 3
  • Seriously, was there just a homework assignment on this? Literally *the next question in my list* was the very same question, asked by another user seconds before this one. – cHao Dec 31 '13 at 06:57
  • Great, you managed to do it without efforts( against the Same-Origin Policy). Normally question is how to make cross-domain service calls in jquery :) – Pranav Singh Dec 31 '13 at 07:02

2 Answers2

0

Web Services can be checked form the firewall where request is coming. It can checked by the content-type of the response. All webservices have "application/soap-xml" as content-type.

Saurabh
  • 5,661
  • 2
  • 26
  • 32
0

Authenticate all your requests to your functions and reject the calls that are not authenticated. check this for more.

Community
  • 1
  • 1
Saritha.S.R
  • 800
  • 1
  • 6
  • 19