Forum Discussion
Got it. For this you will have to create a component on the client side and not server side. Use javascript to create the component and make the boards/id/${board.id}/view/allowed or messages/view/allowed api call as an anonymous user. If it returns true, then share it else not. Currently there is no way you can achieve this via freemarker since all the rest calls run as the user in context.
Hope this helps.
Regards,
Chhama
What's the best way to make a Lithium API call anonymously via JS? When the browser session is authenticated w/ a user w/ elevated permissions, we're seeing that typical ajax calls to direct API urls or to custom endpoints carry the user context.
- ChhamaJ9 years agoKhoros StaffYou might need to use API proxy to get that working. Talk to support to set up API proxy for you and they can guide you with the process.
Hope this helps.
Regards,
Chhama- sullysnack9 years agoKhoros Alumni (Retired)
Hi Chhama,
Thank you. Support pointed me in the right direction. I now have a solution.
Related Content
- 3 years ago
- 2 years ago
- 2 years ago
- 3 years ago