title: ASP .Net Core Call Controller Function from Javascript with redirect from Controller
body: <p>I am breaking my head on this and cant find a solution. In short I have a ASP .Net Core MVC page that has a Javascript list. I need to pass that list to a redirect. I have this in place and it is working so not the solution I am looking for as it is not secure.</p>
  <p>So what I am trying to do is calling the Controller function from Javascript passing the list. I can only do this with Ajax but the controller wont redirect on an Ajax call. Is there anyone that has encountered a similar problem and possibly a solution for this?</p>
  <p>Javascript var -&gt; Controller -&gt; redirect.</p>
  <p>Thank you in advance guys</p>