SSO/LDAP for authentication

ive been trying to break my head on using CORS, at least for HASS, but that is a sticky one too: