Since upgrading to v10 I am unable to get a success request from api
[HttpGet]
[Route("~/api/v2/event/info/{eventId:int}/aid/{aidId:int}/date/{dateId:guid}")]
[Authorize(Roles = "CustomRole")]
public IActionResult CheckEvent(int eventId, int aidId, Guid dateId)
{ }
I would guess the user context is lost and the Authorize attribute is not met, therefor throwing a 302.
This worked fine in version 9.
The request itself is made with javascript, with click of a button; implemented in Vue.
I could use the regular PageController instead, but perhaps its a quick fix for making it work as it did before?!
302 on UmbracoApiController in Umbraco 10
Hi all!
Since upgrading to v10 I am unable to get a success request from api
I would guess the user context is lost and the Authorize attribute is not met, therefor throwing a 302.
This worked fine in version 9.
The request itself is made with javascript, with click of a button; implemented in Vue. I could use the regular PageController instead, but perhaps its a quick fix for making it work as it did before?!
Thanks in advance.
The solution was to change the Authorize attribute to
is working on a reply...