Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Initializing the DatadogRum on chrome extension (in Iframe) not working

See original GitHub issue

Hey, 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: 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: ‘’, 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:open
  • Created 2 years ago
  • Reactions:3
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

bcaudancommented, Mar 1, 2022

It is still something that we want to address in the fullness of time, no ETA to share yet though.

rony-arnaccommented, Sep 1, 2022

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Datadog Docs
For example, initializing ApolloClient before the RUM Browser SDK may result in graphql requests not being logged as XHR resources in the RUM...
Read more >
Inserting iframe from chrome extension doesn't work on some ...
In this particular case the problem was the website forcibly removing iframes. I think noninertialframe's answer may have worked too, but it ...
Read more >
Problem with embedded iframes - Google Groups
I just started encountering a problem with my extension in dev builds where an iframe won't load. The scenario is: 1. I'm loading...
Read more >
Overview - Joe Sandbox
Therefore the report might not work properly. ... Source:, HTTP Parser: Iframe src:
Read more >
4 Ways to Fix iFrame When it's Not Working in Chrome
iFrame not working in Chrome? Tweak your browser's extensions a bit and check all the steps listed below to solve it quickly.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found