grahamgatus
10 years agoGuide
Force rest v2 API calls in an endpoint to be anonymous
Does anyone know if there is a way to execute REST v2 API calls from within an Endpoint as an anonymous user?
I am trying to build a module hosted on an external site, that uses an endpoint to fetch data from the community. The endpoint will be called from the browser via Ajax, and the risk I have identified is that the users lithium session cookies will be passed to the endpoint if a usrr browsing the external site is also logged into the community. We want to prevent this from happening as different users may see different data, depending on their permissions.
Is there a way to force api calls to execute under an anonymous user?