This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
panel: new unsafe-inline styles #11941
Closed
Description
Bug
Demo and steps to reproduce the issue
This blank StackBlitz demo can be used to create a reproduction that demonstrates your issue.
Demo URL (required)*: https://github.com/angular/material/pull/11390/files#diff-b71bb3e10759daf665e48e9bc558dc99R1324
Detailed Reproduction Steps
- Update a project using CSP to the latest
HEAD
:
- https://gitcdn.xyz/cdn/angular/bower-material/v1.1.22-master-08313be/angular-material.css
- https://gitcdn.xyz/cdn/angular/bower-material/v1.1.22-master-08313be/angular-material.js
Or install via NPM withnpm install http://github.com/angular/bower-material#master
- Load the project in a browser
Explain the expected behavior
- No new CSP violations.
Explain the current behavior
- New CSP violations due to
unsafe-inline
forstyle-src
.
Discuss the use-case or motivation for changing the existing behavior
Support existing apps using a CSP for security.
List the affected versions of AngularJS, Material, OS, and browsers
- AngularJS: 1..8.0
- AngularJS Material: v1.1.22-master-08313be
- OS: all
- Browsers: Chrome
Add anything else we should know
This was introduced in PR #11390.
Related Chrome bug that can make the error a bit hard to understand:
https://bugs.chromium.org/p/chromium/issues/detail?id=546106