-
Notifications
You must be signed in to change notification settings - Fork 927
Trusted types violation in analytics/src/helpers.ts #7048
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
Labels
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Replicated the issue using in a firebase project that uses analytics
Resolved issue by editing
We'll work on building a more robust solution to resolve this. |
Fantastic! Thanks so much for looking into this :-D |
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe your environment
Describe the problem
Google Flutter web apps using Firebase plugins that rely on Firebase analytics JS are receiving browser error reports through the TrustedTypes browser APIs. Specifically, the script injection code in insertScriptTag is not adhering to the standards and is causing errors to be logged.
Steps to reproduce:
A similar issue was reported and fixed in the FlutterFire plugin at firebase/flutterfire#10311 - it shows an example of adding a trusted types policy.
Also see internal Google issue b/265347604 for more details.
The text was updated successfully, but these errors were encountered: