title: How do I create request and redirect to the created request?
body: <p>I need to redirect the user to <code>someurl</code> once logged in, but before that, I need to add a few headers. I tried with named HTTP client but I don't think that's the right path, to begin with. I'm planning to host it on Nginx, is it possible to add headers via Nginx to all traffic from this app? or any other way to achieve this?</p>
  <pre><code>public async Task&lt;IActionResult&gt; Login(LoginViewModel model)
      {
          if (ModelState.IsValid)
          {
              try
              {
                  // Login Logic
  
                  var someurl = &quot;https://goodurl.com&quot;
  
                  return Redirect(someurl);
              
                  ModelState.AddModelError(&quot;&quot;, @&quot;Your username or password is incorrect. Please try again.&quot;);
              }
              catch (Exception ex)
              {
                  ModelState.AddModelError(&quot;&quot;, ex.Message);
              }
          }
          return View(model);
      }
  </code></pre>