Title: Replay: recording fails with CSP errors when using base localhost. · Issue #7183 · getsentry/sentry-javascript · GitHub
Open Graph Title: Replay: recording fails with CSP errors when using base localhost. · Issue #7183 · getsentry/sentry-javascript
X Title: Replay: recording fails with CSP errors when using base localhost. · Issue #7183 · getsentry/sentry-javascript
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/7183
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Replay: recording fails with CSP errors when using base localhost.","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\r\n- [X] I have reviewed the documentation https://docs.sentry.io/\r\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\r\n\r\n### How do you use Sentry?\r\n\r\nSentry Saas (sentry.io)\r\n\r\n### Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. `bundle.tracing.min.js`) in your SDK setup.\r\n\r\n@sentry/react\r\n\r\n### SDK Version\r\n\r\n7.37.1\r\n\r\n### Framework Version\r\n\r\n_No response_\r\n\r\n### Link to Sentry event\r\n\r\nhttps://sentry-sdks.sentry.io/replays/sentry-capacitor:37499c8735df470d9545817c6c40208d/?referrer=%2Fdiscover%2F%3AeventSlug%2F&t=7&t_main=console\r\n\r\n### SDK Setup\r\n\r\nI noticed that if you include the following line `\u003cbase href=\"http://localhost/\"/>` \r\n\r\nSample: https://github.com/lucas-zimerman/sample-react (based on Relay demo with pictures and the base code added)\r\n\r\n### Steps to Reproduce\r\n\r\nFollow the [README.md](https://github.com/lucas-zimerman/sample-react#readme) steps, but basically run the code and press the ' break ' button\r\n\r\n### Expected Result\r\n\r\nNo errors on the console.\r\n\r\n### Actual Result\r\n\r\n\r\n\r\nRelated to https://github.com/getsentry/sentry-capacitor/issues/318\r\n\r\nUPDATE: Error can be mitigated by adding the following block parameter `base[href=\"/\"]`","author":{"url":"https://github.com/lucas-zimerman","@type":"Person","name":"lucas-zimerman"},"datePublished":"2023-02-14T15:20:34Z","url":"https://github.com/getsentry/sentry-javascript/issues/7183"}
| 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:a78cc012-7e48-314c-5947-8b60049ddb65 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C0CA:3977D7:416329:58E989:6B04BE3C |
| html-safe-nonce | b020d216a96c80e815b72b38047ea68287de5915120f4c4b576cfada559b26ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMENBOjM5NzdENzo0MTYzMjk6NThFOTg5OjZCMDRCRTNDIiwidmlzaXRvcl9pZCI6IjM4ODQyODg2NjY3NTUxODYyMzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a84b51b7a7abdc91589cf804068aa253a32529b5fefa50b8f0d673526d540003 |
| hovercard-subject-tag | issue:1584354913 |
| 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/7183/issue_layout |
| twitter:image | https://opengraph.githubassets.com/77497943e7cee0bb7c5c8c27113865f6e1823fb4cac361e5ca6927edc49b43e1/getsentry/sentry-javascript/issues/7183 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/77497943e7cee0bb7c5c8c27113865f6e1823fb4cac361e5ca6927edc49b43e1/getsentry/sentry-javascript/issues/7183 |
| 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 | lucas-zimerman |
| 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