mafintosh / is-my-json-valid

A JSONSchema validator that uses code generation to be extremely fast
MIT License
965 stars 111 forks source link

Content-Security-Policy Issue with is-my-json-valid dependency #185

Closed Sivaganesh-Akula closed 3 years ago

Sivaganesh-Akula commented 3 years ago
We have Content-Security-Policy for the project, facing issue with sub dependency (generate-function (index.js)) throwing unsafe eval exception. Can you please help on this ![image](https://user-images.githubusercontent.com/54196967/129579891-69939235-b911-405f-be54-b2e0194e6e56.png)
LinusU commented 3 years ago

This library works by dynamically creating functions that validates input. In order to use this you need to make sure that this is allowed by your content-security-policy...