title: How to receive XSRF-TOKEN send from asp.net mvc in vue js?
body: <p>At Backend, I have used asp.net web API and I can validate the token by comparing hidden field token and cookies token as shown below:</p>
  
  <pre><code>try
  {
    string cookieToken, formToken;
    AntiForgery.GetTokens(null, out cookieToken, out formToken);
  
    CookieHeaderValue cookie = Request.Headers
                                      .GetCookies(AntiForgeryConfig.CookieName)
                                      .FirstOrDefault();
    if (cookie != null)
    {
      Stream requestBufferedStream = Request.Content.ReadAsStreamAsync().Result;
      requestBufferedStream.Position = 0;
      NameValueCollection myform = Request.Content.ReadAsFormDataAsync().Result;
      try
      {
        AntiForgery.Validate(cookie[AntiForgeryConfig.CookieName].Value,
         myform[AntiForgeryConfig.CookieName]);
      }
      catch (Exception ex)
      {
        throw new HttpResponseException(
         new HttpResponseMessage(HttpStatusCode.Unauthorized));
      }
    }
  }
  </code></pre>
  
  <p><strong>But I am not able to create  XSRF - token at the frontend using Vue</strong>?
  How to create this XSRF validation token at the frontend so that I can later send them back to the backend for validation.</p>
  
  <p>Here, My backend and frontend projects are separate projects.</p>
  
  <p>Anyone there...</p>