Good afternoon I have an application in MVC that generates some cookies, I would like to know if it is possible to recover these cookies through an Api, as I tried and unfortunately could not.
Code generated for api:
[Route("ResgataCookie")]
[HttpGet]
public IHttpActionResult ResgataCookie()
{
string test = "";
if (HttpContext.Current.Request.Cookies["RMACookies"] != null)
{
test = HttpContext.Current.Request.Cookies["RMACookies"].Value;
}
return Ok(test);
}