Comments (12)
This is available in 1.19.0
with useCrossSiteSessionCookie: true
init configuration.
Let us know if there is any trouble.
from browser-sdk.
How does this prevent you to use RUM? Is there a browser error?
The checkCookiesAuthorized
test fails and Cookies are not authorized, we will not send any data.
is printed in the console log
Is your plugin iFrame has a src attribute?
Yes, and with another domain name then the page currently visited
The changes I did to get it to work was this
from browser-sdk.
Hi @nilols,
In order to better understand your issue:
-
How does this prevent you to use RUM? Is there a browser error?
-
Is your plugin iFrame has a src attribute?
Thanks
from browser-sdk.
Maybe this https://blog.chromium.org/2019/10/developers-get-ready-for-new.html explain the issue with samesite=strict
, for third party context, better then I do
from browser-sdk.
OK, I did not realize that execution in an iFrame was considered as a third party context.
We could probably allow this behavior through a dedicated configuration parameter, we'll discuss it internally.
from browser-sdk.
Hey, I have this issue too with the same use case - my company iframes are in other sites and im getting:
"...Cookies are not authorized, we will not send any data." from checkCookiesAuthorized ... my datadog init is:
datadogRum.init({ applicationId: 'xxxxxxxxxxxx', clientToken: 'xxxxxxxxxxxxx', site: 'datadoghq.com', env: xxxxx, service: 'xxx', version: '1.0.0', useCrossSiteSessionCookie: true, trackSessionAcrossSubdomains: true, sampleRate: 100, trackInteractions: true });
tried with version 1.19.0 - 1.21.0 without any success...
I don't have any control over the original sites containing our iframes, is there any solution for this?
from browser-sdk.
Hi @gevalter,
There is indeed still an issue with this but a fix should be released today, cf #555
from browser-sdk.
The fix has been release as part of v1.24.0
.
from browser-sdk.
tried to upgrade to 1.24.0 but still the same cookies warning and no data on the datadog website... Is this ability of iframe tracking is compatible with the datadogRUM SDK?
from browser-sdk.
@gevalter: By using using useCrossSiteSessionCookie
, you have to use HTTPS websites. Is the top-level website and iframed website in HTTP or HTTPS?
from browser-sdk.
oh you right, changed to https and all works, thanks!
from browser-sdk.
Still seeing this issue:
Cookies are not authorized, we will not send any data
I have RUM running inside an iframe, seems like this should work as per #555
EDIT: Ah duh cross origin issues b/w localhost and my iframed app - this is only an issue in local dev.
from browser-sdk.
Related Issues (20)
- `beforeSend` not firing HOT 3
- 💡 Discard identical logs HOT 2
- Rollup warning: "this" has been rewritten to "undefined" HOT 3
- 💡 Log traceId at start of request HOT 1
- 🐛 Wrong city name HOT 1
- 🙏 Error thrown as console instead of source HOT 2
- 🙏🏻 Understanding Performance Implications of the NPM Installation Method HOT 2
- 🙏 Inject trace_id and span_id from OpenTelemetry into browser logs HOT 2
- outdated type definitions for `LogsInitConfiguration`
- 💡 Support Soft Navigation HOT 2
- only one between datadogRum and datadogLogs is available at a time HOT 5
- stack trace/source mapping for custom action HOT 7
- Datadog Trace Headers Not Added for Angular HttpClient Requests HOT 2
- Large number of Uncaught "Object Not Found Matching" errors HOT 1
- 💡 More attribution data for event timings and core web vitals HOT 3
- 🙏🏻 Does the sampleRate of native and webview affect each other? HOT 10
- 💡 Improvements to console forwarding HOT 1
- getSelectorFromElement scales poorly with a large DOM and ids with numbers are not used HOT 6
- 🙏 Document how action target name is computed HOT 3
- Nuxtjs application not loading Datadog RUM properly and no data is reported to Datadog HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from browser-sdk.