Initializing the DatadogRum on chrome extension (in Iframe) not working
See original GitHub issueHey, Im working on RUM in different angular applications which include a website and a chrome extension. I followed the guide to initialize the RUM logic in all the clients using this guide:
https://docs.datadoghq.com/real_user_monitoring/browser/
using the npm package in the client. the website seems to work perfectly but the chrome extension always gives me this error : vendor.js:119504 Cookies are not authorized, we will not send any data.
and after checking the innerContext after init it returns undefined
this is the code that I used in both website and extension with token and app fields being what was generated from DD.
datadogRum.init({ applicationId: ‘—’, clientToken: ‘—’, site: ‘datadoghq.com’, service:‘—extension’, sampleRate: 100, trackInteractions: true, env: environment.production ? ‘production’ : ‘staging’, allowedTracingOrigins: [/https?://.*.–.com/], useCrossSiteSessionCookie: true, silentMultipleInit: true }); — is not what is in the code. i changed it from my appId and token here for privacy 😄 is there something extra that should be done in the extension or there seems
browser-rum version : 2.7.2
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:7 (1 by maintainers)
Top GitHub Comments
It is still something that we want to address in the fullness of time, no ETA to share yet though.
Hi! is there a workaround for making RUM work inside a chrome extension? also, what is the issue in running it there? extensions should have access to cookies. e.g. auth0 stores data on a cookie. is it maybe the
chrome-extension://
prefix that causes the issue?