-
Notifications
You must be signed in to change notification settings - Fork 475
fix highlight.run getSessionUrl only returning session ID #9041
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
Conversation
|
2717bc2 to
9f0234b
Compare
9f0234b to
ca60621
Compare
| const { url, urlWithTimestamp } = await win.eval( | ||
| `H.getSessionDetails()`, |
Check notice
Code scanning / devskim
If untrusted data (data from HTTP requests, user submitted files, etc.) is included in an eval statement it can allow an attacker to inject their own code.
| win.eval(`fetch('${baseUrl}/index.html', {method: 'POST'})`) | ||
| win.eval(`H.track('MyTrackEvent', {'foo': 'bar'})`) | ||
|
|
||
| const result = await win.eval(`H.getSessionURL()`) |
Check notice
Code scanning / devskim
If untrusted data (data from HTTP requests, user submitted files, etc.) is included in an eval statement it can allow an attacker to inject their own code.
ccschmitz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Looks good to me, but did not click test. Let me know if you want me to pull down and click test, but looks like the new test covers the change pretty well!
54be34f to
9cdae87
Compare
Releases: highlight.run@9.1.3 @highlight-run/next@7.5.14 @highlight-run/remix@2.0.45 [skip ci]
Summary
getSessionURLto return the full session urlgetSessionDetailsto return the URL with timestamp without blocking for the client.How did you test this change?
new cypress test additions
Are there any deployment considerations?
changeset
Does this work require review from our design team?
no