I use ACE and ACT_AS_USER scope. When an anonymous user interacts with the app, addon.httpClient(req) throws “A userAccountId must be provided to make a request as a user” error.
How can I make a request to the application from my Node.js server as an anonymous user?
9 Likes
If you’re wanting to behave like an anonymous user - just make the request directly to the rest api without using addon.httpClient. That way you don’t get any credentials passed along with it.
3 Likes
Thank you, that worked! I hoped I won’t need to make ifs and make requests using different APIs.