Can I get the header information in the constructor of the web API controller? I want to set variables based on the value of the header, but I do not want to do this for each method. I am particularly interested in the custom value of the header, but I would agree to authorization at this point. I can get it to work in AuthorizationFilterAttribute , but I also need it at the controller level.
[PolicyAuthorize] public class PoliciesController : ApiController { public PoliciesController() { var x = HttpContext.Current;
source share