I searched for possible ways to add a request header parameter that would be added automatically to every method in my web-api but i couldn\'t find a clear one.
web-api
Another way to add custom headers is by adding parameters into controller action. The following example will add x-test parameter to the UI:
x-test
[HttpPost] public IActionResult Test([FromHeader(Name="x-test")][Required] string requiredHeader) { return Ok(); }