Skip to content

[DRAFT] Fix TrustedScript security issue on custom script eval()#448

Draft
magiruuvelvet wants to merge 1 commit intoamitbl:masterfrom
magiruuvelvet:fix/js-trusted-types
Draft

[DRAFT] Fix TrustedScript security issue on custom script eval()#448
magiruuvelvet wants to merge 1 commit intoamitbl:masterfrom
magiruuvelvet:fix/js-trusted-types

Conversation

@magiruuvelvet
Copy link
Copy Markdown

Starting today, evaluation of the custom blocking rules script stopped working for me. The exception in the console is This document requires 'TrustedScript' assignment..

This can be worked around by creating a trusted types policy. There is probably a better and more secure way to achieve this, so I'm marking this PR as draft. If I have more time available, I will look into this in more detail. For now, this small patch fixes the evaluation of custom blocking rules script.

`This document requires 'TrustedScript' assignment.`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant