SSO Log out - CORS issue

I’m using SSO and want to log the user out of Discourse when they log out of the app. I’m currently using the ‘admin API’ to fetch the the user ID via /users/by-external/${id}.json but I’m getting CORS errors even though my site is an allowed origin - I don’t want to enable the ‘user API’ for every user just for this logout process - how do i resolve this issue?

1 Like

This API call should be made from the backend of your application.

3 Likes

Ah, good shout. I’ll try that.

1 Like