[Solved]Umbraco 14, Custom Api controller returns HTML instead of Array.
l
Does your install have a page created? Looks like it’s retuning the default page when no content exists…
a
k
That's not the correct route for the action method you're trying to reach, is it?
a
@kdx-perbol I'm not sure what you mean. It's just a test and it displays in swagger hence i think the route is correct.
k
The action method is only for signed-in members, are you signed-in in the Swagger UI?
a
Yes I'm. I'll try to delete authorization and see what happens.
Weird, when i deleted authorization it works.
k
How did you get signed-in as a member?
Maybe Swagger UI isn't sending "normal" cookie-based credentials somehow?
a
I'm logged in as an admin. I assumed it would've worked. Guess i need to be a part of some group or some specified member. Am i right?
k
What does "as an admin" mean?
Sure you're not confusing members and users?
a
Well i guess it's the case.
k
Not sure what
[UmbracoUserAuthorize]
would be...
a
Yeah haha have some fun. I'm stupid. Anyway problem resolved 😛
33 Views