Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛[RUMF-330] fix intake requests exclusion #281

Merged
merged 4 commits into from
Feb 26, 2020

Conversation

bcaudan
Copy link
Contributor

@bcaudan bcaudan commented Feb 26, 2020

when several SDKs are setup on the same page, client tokens can differ.

@bcaudan bcaudan requested a review from a team as a code owner February 26, 2020 09:34
Copy link
Member

@BenoitZugmeyer BenoitZugmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, only a small NIT

)
}

function haveSameOrigin(url1: string, url2: string) {
return startsWith(url2, new URL(url1).origin)
Copy link
Member

@BenoitZugmeyer BenoitZugmeyer Feb 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT:

startsWith("https://rum-intake.com.zogzog.net", new URL('https://rum-intake.com/foo?bar=baz').origin) // true

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch, it could be an issue if we reuse that in another context

@bcaudan bcaudan force-pushed the bcaudan/fix-sdk-request-exclusion branch from 6b8f1f6 to 13b2ffa Compare February 26, 2020 09:58
@bcaudan bcaudan merged commit 49612b9 into master Feb 26, 2020
@bcaudan bcaudan deleted the bcaudan/fix-sdk-request-exclusion branch February 26, 2020 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants