We have a site builder, allows users to add/modify JS/HTML/CSS. Is it possible to provide a global authentication for it?
I mean users login once but can interact with all sites as their own names. Those sites should not be able to steal user token and change data in other sites in the network. Consider a global authentication for all stackoverflow sites and no XSS protection.
Architecture:
- An HTTP only cookie (instead of JWT local storage) for our API authentication
- Limit each site requests to its own resources by a dynamic CORS.
Is this secure?