-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Inline <style> elements violates style-src Content Security Policy #6361
Copy link
Copy link
Closed
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimearea: securityIssues related to built-in security features, such as HTML sanitationIssues related to built-in security features, such as HTML sanitationcore: stylesheetscross-cutting: CSPfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfreq3: highsecurityIssues that generally impact framework or application securityIssues that generally impact framework or application securitystate: has PR
Milestone
Description
The framework should support users that want to build their apps for CSP. In this case, the style-src directive would be in violation by Angular 2's use of inline <style> elements for things like CSS encapsulation.
I was curious if Angular 1 supported CSP, and it seems that Angular 1 indeed generates a stylesheet (build/angular-csp.css) that users can consume for CSP mode.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimearea: securityIssues related to built-in security features, such as HTML sanitationIssues related to built-in security features, such as HTML sanitationcore: stylesheetscross-cutting: CSPfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfreq3: highsecurityIssues that generally impact framework or application securityIssues that generally impact framework or application securitystate: has PR