Code Monkey home page Code Monkey logo

Comments (12)

bcaudan avatar bcaudan commented on June 22, 2024 2

This is available in 1.19.0 with useCrossSiteSessionCookie: true init configuration.
Let us know if there is any trouble.

from browser-sdk.

nilols avatar nilols commented on June 22, 2024 1

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
image

from browser-sdk.

bcaudan avatar bcaudan commented on June 22, 2024

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.

nilols avatar nilols commented on June 22, 2024

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

image

from browser-sdk.

bcaudan avatar bcaudan commented on June 22, 2024

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.

gevalter avatar gevalter commented on June 22, 2024

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.

bcaudan avatar bcaudan commented on June 22, 2024

Hi @gevalter,

There is indeed still an issue with this but a fix should be released today, cf #555

from browser-sdk.

BenoitZugmeyer avatar BenoitZugmeyer commented on June 22, 2024

The fix has been release as part of v1.24.0.

from browser-sdk.

gevalter avatar gevalter commented on June 22, 2024

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.

BenoitZugmeyer avatar BenoitZugmeyer commented on June 22, 2024

@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.

gevalter avatar gevalter commented on June 22, 2024

oh you right, changed to https and all works, thanks!

from browser-sdk.

faizan-ali avatar faizan-ali commented on June 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.