Skip to content
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

Consider using pre-compiled JSON schema validator #239

Open
chrahunt opened this issue Jun 21, 2020 · 0 comments
Open

Consider using pre-compiled JSON schema validator #239

chrahunt opened this issue Jun 21, 2020 · 0 comments

Comments

@chrahunt
Copy link
Owner

Some of the complexity from our use of AJV (sandboxed page (html, js), proxy object) come because it uses the Function constructor. Since the background page has a CSP that does not include unsafe-eval, this is blocked by default.

I am pretty sure this was ruled out previously, but just in case there's been some update, consider the options mentioned in ajv-validator/ajv#406.

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

No branches or pull requests

1 participant