8
How do I limit access to a web service to only two domains?
I would like only the domain: http://"ServidoX".ipesp.gov"
and the http://"ServidoY".ipesp.gov"
can consume this service.
I’ve tried modifying on the 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 this way :
add name="Access-Control-Allow-Origin" value="*"
I also tried to restrict access to the application in IIS Server , but it did not help.