So, I have written a quite simple API: 2sxc get api
But when I call this API with the following URL:
https://www.domain.nl/api/2sxc/app/Locaties/api/Searchlocaties/locaties?naam=bo I get the following message:
{"Message":"Bad Request","ExceptionType":"System.UnauthorizedAccessException","ExceptionMessage":"RequestVerificationToken not present"} I have set the content and app query permissions to SecurityAccessLevel.Anonymous.
I get the same message even when I logged in and calling the api using javascript.
fetch('https://www.domain.nl/api/2sxc/app/Locaties/api/Searchlocaties/locaties?naam=bo') .then(response => response.json()) .then(data => console.log(data)); Have anyone experience this?
https://stackoverflow.com/questions/66037981/2sxc-requestverificationtoken-not-present February 04, 2021 at 09:04AM
没有评论:
发表评论