Limit Webservices access to two domains

Asked

Viewed 417 times

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. inserir a descrição da imagem aqui

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.