Get Origin when the request is made internally and not by the browser

I am making a request from one web API to another. I want only the first API to be able to request the second API, others are not allowed to do so.

I have applied CORS, but since the request came from an API, there is no origin in the request. Is there a way that my second API can only access the first one.

NOTE. I am using WEB API 2.

+3


source to share


1 answer


There are several ways to do this.

ip limit and clientcerts are two of them.



My favorite client

0


source







All Articles