title: How can I validate Request.Headers["Authorization"] for all controller at a single place?
body: <pre><code>[HttpGet]
  public IActionResult Get()
  {
      string token = Request.Headers["Authorization"];
      // Validate token.
  }
  
  [HttpPost]
  public IActionResult Post(int id)
  {
      string token = Request.Headers["Authorization"];
      // Validate token.
  }
  </code></pre>
  
  <p>How can I validate Request.Headers["Authorization"] for all controller at a single place?</p>