Skip to content

fix(browser): Set anonymous crossorigin attribute on report dialog#8424

Merged
lforst merged 1 commit intodevelopfrom
lforst-crossorigin
Jun 29, 2023
Merged

fix(browser): Set anonymous crossorigin attribute on report dialog#8424
lforst merged 1 commit intodevelopfrom
lforst-crossorigin

Conversation

@lforst
Copy link
Copy Markdown
Contributor

@lforst lforst commented Jun 29, 2023

Ref: getsentry/sentry#49535 (comment)

Since we don't need to authenticate users on the report dialog endpoint we should not send any credentials with the request.

Also prevents COEP blockage: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy#avoiding_coep_blockage_with_cors

@lforst lforst requested review from AbhiPrasad, Lms24 and mydea June 29, 2023 10:25
@github-actions
Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.51 KB (+0.07% 🔺)
@sentry/browser - ES5 CDN Bundle (minified) 67.62 KB (+0.04% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 19.83 KB (+0.07% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 58.93 KB (+0.05% 🔺)
@sentry/browser - Webpack (gzipped + minified) 21.43 KB (+0.01% 🔺)
@sentry/browser - Webpack (minified) 69.87 KB (0%)
@sentry/react - Webpack (gzipped + minified) 21.46 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 49.81 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 29.4 KB (+0.05% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 27.5 KB (+0.06% 🔺)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 49.34 KB (0%)
@sentry/replay - Webpack (gzipped + minified) 43.11 KB (0%)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 68.84 KB (+0.02% 🔺)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 61.39 KB (+0.03% 🔺)

@lforst lforst merged commit 7de917e into develop Jun 29, 2023
@lforst lforst deleted the lforst-crossorigin branch June 29, 2023 11:00
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