-
-
Notifications
You must be signed in to change notification settings - Fork 344
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 are breaking clipboard pasting #1485
Comments
Which browser is this? This For the time being, I suspect you're going to have to turn off this policy to work around the issue. |
I see, it happens on the latest Chrome |
It appears |
Oh, apparently you can 'declare' that a string is safe with |
What is the issue?
When I use a strict CSP rule in my project, I get an error when I try to paste text or images in the editor. Text will work with an error, images will not work at all.
The require-trusted-types Rule is experimental, though it's recommened by frameworks e.g. Angular to prevent XSS.
Steps to reproduce
Expected behavior
I can paste images or text
Actual behavior
The text is pasted but I see an error in the console (image pasting will not work)
The text was updated successfully, but these errors were encountered: