-
Notifications
You must be signed in to change notification settings - Fork 134
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
🐛[RUMF-320] Remove url-polyfill dependency #294
Conversation
Codecov Report
@@ Coverage Diff @@
## master #294 +/- ##
==========================================
- Coverage 86.27% 86.04% -0.23%
==========================================
Files 24 25 +1
Lines 1362 1405 +43
Branches 298 304 +6
==========================================
+ Hits 1175 1209 +34
- Misses 187 196 +9
Continue to review full report at Codecov.
|
https://github.com/DataDog/browser-sdk/pull/294/files#diff-252c841276c8ed9e5cbdc5a3865065dfR47 - appending the https://docs.datadoghq.com/real_user_monitoring/faq/content_security_policy/?tab=us - CSP article should include |
Hi @msokk, Could you confirm that:
Thanks |
IE does not support CSP (apart from Started first seeing events March 12, ~13:30 GMT |
@msokk is this issue reported by sentry on every browsers? |
Well, our reports mostly (99%) consisted of Chrome 80, as we have a lot of Chrome users, but there are some Firefox and Opera. It's not a big issue, just some extra configuration might be needed from site side if they have set up security headers. We just have a very strict So far no third-party piece of code touched the |
OK, I'd prefer to not need extra csp rules if we can avoid it. Could you provide me one url where there is the issue? |
I already adjusted our CSP rules on all environments to stop eating up Sentry quota. Here is a codepen with Violation is in console |
Thanks a lot for that, I'll have a look and keep you updated if there is any changes on this topic. |
URL api was never used and for customer with base-uri csp restrictions, the polyfill raised an exception. cf [bug report](#294 (comment))
URL api was never used and for customer with base-uri csp restrictions, the polyfill raised an exception. cf [bug report](#294 (comment))
URL api was never used and for customer with base-uri csp restrictions, the polyfill raised an exception. cf [bug report](#294 (comment)) Add similar restrictions to e2e pages.
URL api was never used and for customer with base-uri csp restrictions, the polyfill raised an exception. cf [bug report](#294 (comment)) Add similar restrictions to e2e pages.
URL api was never used and for customer with base-uri csp restrictions, the polyfill raised an exception. cf [bug report](#294 (comment)) Add similar restrictions to e2e pages.
URL api was never used and for customer with base-uri csp restrictions, the polyfill raised an exception. cf [bug report](#294 (comment)) Add similar restrictions to e2e pages.
URL api was never used and for customer with base-uri csp restrictions, the polyfill raised an exception. cf [bug report](#294 (comment)) Add similar restrictions to e2e pages.
The dependency used to polyfill URL API is modifying the global scope which caused an issue for a customer.
Since we don't use a lot of URL features, replace this polyfill by a simple implementation that support only our current needs.