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

Replay: recording fails with CSP errors when using base localhost. #7183

Closed
3 tasks done
lucas-zimerman opened this issue Feb 14, 2023 · 3 comments
Closed
3 tasks done

Comments

@lucas-zimerman
Copy link
Contributor

lucas-zimerman commented Feb 14, 2023

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

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.

@sentry/react

SDK Version

7.37.1

Framework Version

No response

Link to Sentry event

https://sentry-sdks.sentry.io/replays/sentry-capacitor:37499c8735df470d9545817c6c40208d/?referrer=%2Fdiscover%2F%3AeventSlug%2F&t=7&t_main=console

SDK Setup

I noticed that if you include the following line <base href="http://localhost/"/>

Sample: https://github.com/lucas-zimerman/sample-react (based on Relay demo with pictures and the base code added)

Steps to Reproduce

Follow the README.md steps, but basically run the code and press the ' break ' button

Expected Result

No errors on the console.

Actual Result

image

Related to getsentry/sentry-capacitor#318

UPDATE: Error can be mitigated by adding the following block parameter base[href="/"]

@Lms24
Copy link
Member

Lms24 commented Feb 20, 2023

Seems like adding this selector to block would be the best course of action then. I wonder though if this has implications for the behaviour of the site, considering the base tag's purpose.

@billyvg
Copy link
Member

billyvg commented Feb 21, 2023

Anecdotally, base already plays poorly with the player. This is also something to think about for #7007

@billyvg
Copy link
Member

billyvg commented Aug 1, 2023

Closed in #7233 (Thanks Lucas!)

@billyvg billyvg closed this as completed Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants