Limit WebServices access to two domains

8

How do I limit access to one Web Service to only two domains?

I would like only the domain: http://"ServidoX".ipesp.gov" and http://"ServidoY".ipesp.gov" to consume this service.

I have tried to modify in Web.Config using the Tag:

add name="Access-Control-Allow-Origin" value="http://"XXXXX".ipesp.gov,   http://"YYYY.ipesp.gov"

Currently the Web.Config file is configured like this:

add name="Access-Control-Allow-Origin" value="*"

I also tried restricting access to the application on IIS Server, but it did not work.

    
asked by anonymous 08.01.2015 / 13:45

1 answer

1

Ping (ping server.ipesp.gov) to these addresses and configure IIS restriction ip to allow access to only those ipads. If the servers do not accept ping, try to find out their ip number.

To configure IIS, see link

    
14.01.2015 / 18:15