You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context
Errors logged on the console can contain sensitive information. What we've noticed is that if our app has injected scripts running on-top, for example a browser extension or in-app browser, it can throw errors in the console which may contain sensitive inputs from the DOM, and this results in the error being sent to Datadog.
Please correct me if I'm wrong, but I've checked the docs here and the issues tab but don't see a real way to determine if
The error from the console is from our app, or an injected script
If the error contains source maps or not
Describe the solution you'd like
Ideally we can determine if the error in beforeSend is coming from a domain that doesn't belong to ours
Or if the error does not have source maps attached (boolean attribute?)
Describe alternatives you've considered
We've looked at possibly using regex to filter our messages but that's an expensive endeavour. We'd like to explore if there's other alternatives available first
The text was updated successfully, but these errors were encountered:
Hi @jeremy-ap ,
Do you own the injected scripts running on-top and would you need to tell which script the errors are from?
We support addError() with context. By adding context from your main app, hopefully it could help you in this case to distinguish the source of errors from 3rd party injected scripts.
Context
Errors logged on the console can contain sensitive information. What we've noticed is that if our app has injected scripts running on-top, for example a browser extension or in-app browser, it can throw errors in the console which may contain sensitive inputs from the DOM, and this results in the error being sent to Datadog.
Please correct me if I'm wrong, but I've checked the docs here and the issues tab but don't see a real way to determine if
Describe the solution you'd like
Ideally we can determine if the error in beforeSend is coming from a domain that doesn't belong to ours
Or if the error does not have source maps attached (boolean attribute?)
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: