Closed
Description
Feature Request
Angular material is currently incompatible with a strict Content Security Policy (CSP) of style-src 'self';
. The most strict CSP policy for style-src that I've been able to use with Angular Material is style-src 'self' 'unsafe-inline';
, which isn't terrible, but still gets flagged on security scanners like https://csp-evaluator.withgoogle.com
It would be nice if Angular Material could become compatible with strict CSPs. What it would mean is removing any in-line style tags, such as the one in checkbox.html
Questions
- Given the nature of this project and its heavy use of dynamic styling, is this even possible?
- Does the material team have any interest in avoiding in-line style tags?
Metadata
Metadata
Assignees
Labels
No labels