cookies - Application insights setAuthenticatedUserContext with API on another domain -


i have application insights configured on both front , back-end of website, operate on different sub-domains (let's www.mydomain.com , api.mydomain.com).

the cookie containing user information set setauthenticatedusercontext stored ai cookie domain set www.mydomain.com. when make call api.mydomain.com cookie not included, , therefore credentials set not associated ai data logged api.

my api has access-control-allow-credentials set true, , front-end has withcreditials set true on xhr object.

can ai set different cookie domain, or there other issue @ play here stopping user information reaching api?

update: notice google analytics sets cookie domain set .mydomain.com, , cookie information included calls api.

this not supported there issue opened on gh it: https://github.com/microsoft/applicationinsights-js/issues/64 please continue monitoring gh link, provide update soon. thanks!


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -