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

feat(trace): allow Trace Viewer to include credentials when fetching traces cross-origin #28502

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

pmattj
Copy link
Contributor

@pmattj pmattj commented Dec 5, 2023

Add the 'credentials': include option on the trace fetch so the browser can include cookies when fetching from a different origin, assuming the origin returns the correct Access-Control-Allow-Origin and Access-Control-Allow-Credentials headers.

Fixes #28501

…traces cross-origin

Add the "'credentials': include" option on the trace fetch so the browser can include
cookies when fetching from a different origin, assuming the origin returns the correct
Access-Control-Allow-Origin and Access-Control-Allow-Credentials headers.

Fixes microsoft#28501
Copy link
Contributor

github-actions bot commented Dec 5, 2023

Test results for "tests 1"

3 flaky ⚠️ [chromium] › library/tracing.spec.ts:239:5 › should not include trace resources from the previous chunks
⚠️ [chromium] › library/tracing.spec.ts:239:5 › should not include trace resources from the previous chunks
⚠️ [webkit] › library/browsercontext-reuse.spec.ts:50:1 › should reset serviceworker

26279 passed, 615 skipped
✔️✔️✔️

Merge workflow run.

Copy link
Contributor

@dgozman dgozman left a comment

Choose a reason for hiding this comment

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

Thank you for the PR, looks great!

@dgozman dgozman merged commit 3f3f332 into microsoft:main Dec 14, 2023
30 checks passed
@pmattj
Copy link
Contributor Author

pmattj commented Dec 14, 2023

Thank you!

dgozman added a commit to dgozman/playwright that referenced this pull request Jan 17, 2024
dgozman added a commit that referenced this pull request Jan 17, 2024
…etching traces cross-origin (#28502)" (#29024)

This reverts commit 3f3f332.

References #29019.
dgozman added a commit to dgozman/playwright that referenced this pull request Jan 17, 2024
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.

[Feature] Trace viewer: allow fetching traces from origins that require credentials
2 participants