Title: Replay causes error `Blocked a frame with origin
Open Graph Title: Replay causes error `Blocked a frame with origin
X Title: Replay causes error `Blocked a frame with origin
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/13173
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Replay causes error `Blocked a frame with origin \u003chostname> from accessing a frame with origin \"https://js.stripe.com\"` in Safari when Stripe payment form is on the page","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/browser\n\n### SDK Version\n\n8.22.0\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n```\nSentry.init({\n dsn: \"https://examplePublicKey@o0.ingest.sentry.io/0\",\n replaysSessionSampleRate: 1,\n integrations: [\n Sentry.replayIntegration({\n block: [\"iframe\"],\n }),\n ],\n})\n```\n\n### Steps to Reproduce\n\nA minimal reproduction repro with a deployed example is available at https://github.com/jakst/sentry-replay-stripe. Basically running the Sentry Replay integration when a Stripe form is rendered causes this error `Blocked a frame with origin \"https://sentry-replay-stripe.vercel.app\" from accessing a frame with origin \"https://js.stripe.com\"`.\n\nI was following along in https://github.com/getsentry/sentry-javascript/issues/6560 and though the issue was resolved, but even though I have confirmed the claimed fix is present in our version of the SDK, we still get this error with the stripe form together with Sentry Replay.\n\n### Expected Result\n\nI would expect that setting `block: [\"iframe\"]` allows us to render the Stripe payments form without getting any errors.\n\n### Actual Result\n\nThis error is written in the console on Safari\n\n```\nBlocked a frame with origin \"https://sentry-replay-stripe.vercel.app\" from accessing a frame with origin \"https://js.stripe.com\". Protocols, domains, and ports must match.\n```","author":{"url":"https://github.com/jakst","@type":"Person","name":"jakst"},"datePublished":"2024-08-02T10:34:29Z","url":"https://github.com/getsentry/sentry-javascript/issues/13173"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6e378aa0-c4e7-5046-8f77-1a4f5af8baba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE1E:B142A:673504:896EFB:6B04C70A |
| html-safe-nonce | 7ef4c40c4dfdb58f37d910106eb837d01ddaa4ec0c5dfbee9dfb51113022fa00 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTFFOkIxNDJBOjY3MzUwNDo4OTZFRkI6NkIwNEM3MEEiLCJ2aXNpdG9yX2lkIjoiNjczNzU1NTU2NzQyODI5MDMxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 72b1efa17b8afb344979a994c34c81308cc1bf09bb68fe19dc8acda6f70cdb98 |
| hovercard-subject-tag | issue:2444669487 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/13173/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97b054f28060b9470d5f50f58077a79b119b3bf02ac7b643d9abd6738220011b/getsentry/sentry-javascript/issues/13173 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97b054f28060b9470d5f50f58077a79b119b3bf02ac7b643d9abd6738220011b/getsentry/sentry-javascript/issues/13173 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jakst |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width