Is there a way how can I can get request origin value in the api controller when I\'m calling some api endpoint with ajax call?
For example I\'m making this call from w
You can grab it from the API methods via current HTTP request headers collection:
IEnumerable originValues; Request.Headers.TryGetValue("Origin", out originValues)