-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Open
Labels
editor-corefeature-requestRequest for new features or functionalityRequest for new features or functionality
Milestone
Description
monaco-editor npm version: 0.7.0
Browser: Edge, Chrome
OS: Windows
We use up to date CSP security rules and deny inline styles to prevent browser-based attacks:
default-src: 'none'; style-src: 'self';
The editor uses inline styles instead of DOM manipulation which is not allowed in a context like this. The browsers refuse to apply these styles which makes the editor render unreadable:
Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-DNZrVDWDsOLjYnOQ2E2tq7OIosyNLfBDcLuoNqGotlQ='), or a nonce ('nonce-...') is required to enable inline execution.```
cgx, TheRealPiotrP, scorredoira, jbosse, myfoxtail and 68 moreDavidMulder0
Metadata
Metadata
Assignees
Labels
editor-corefeature-requestRequest for new features or functionalityRequest for new features or functionality