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

Trusted Types CSP #20001

Open
2 tasks done
jkubiszewski opened this issue Nov 18, 2023 · 2 comments
Open
2 tasks done

Trusted Types CSP #20001

jkubiszewski opened this issue Nov 18, 2023 · 2 comments
Assignees
Labels

Comments

@jkubiszewski
Copy link

Bug description

I'm trying to use a CSP rule with trusted-types and I have an error that I'm not able to fix with angular-fontawesome.

angular-fontawesome should support for the Trusted Types API so that it can be seamlessly integrated into applications that enforce trusted types for all DOM XSS injection sinks (such as innerHTML setters) via the require-trusted-types-for CSP directive. Trusted Types are now fully supported in major browsers such as Chrome and Edge.

I initially reported the error in angular-fontawesome, but was redirected here.

Reproducible test case

https://stackblitz.com/edit/stackblitz-starters-b8bgja?file=src%2Fmain.ts

Screenshots

image

Font Awesome version

v6.4.2

Serving

Other (as specified in the bug description)

Implementation

Other (as specified in the bug description)

Browser and Operating System

  • Chrome 119 on Windows 11
  • and any other possible

Web bug report checklist

  • I have included a test case because my odds go way up that the team can fix this when I do
  • I have searched for existing issues and to the best of my knowledge this is not a duplicate
@jkubiszewski jkubiszewski added bug needs-triage This bug needs to be confirmed labels Nov 18, 2023
@jkubiszewski jkubiszewski changed the title Bug: Bug: Trusted Types CSP Nov 18, 2023
@chris-putnam
Copy link

I ran into this same issue as well.

I tried adding trusted-types angular angular#bundler angular#unsafe-bypass; require-trusted-types-for 'script'; to my CSP but the error persisted

@robmadole
Copy link
Member

Okay. We'll add this to the list but I will say that this is not likely to change as part of version 6 of Font Awesome. I'm also going to change this to a feature request instead of a bug.

@robmadole robmadole added feature and removed bug labels Aug 19, 2024
@robmadole robmadole removed the needs-triage This bug needs to be confirmed label Aug 19, 2024
@robmadole robmadole changed the title Bug: Trusted Types CSP Trusted Types CSP Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants