taskcluster / taskcluster-tools

Tools for debugging, inspecting and managing Taskcluster
https://tools.taskcluster.net/
Mozilla Public License 2.0
26 stars 91 forks source link

Add unsafe-eval to CSP #564

Closed helfi92 closed 6 years ago

helfi92 commented 6 years ago

Running the CSP headers introduced in https://github.com/taskcluster/taskcluster-tools/pull/563 seemed to work in production, however I had to rollback after seeing the group inspector not loading.

screen shot 2018-08-17 at 2 02 50 pm

There seems to be a call being made to Function() which is being blocked. After inspecting the issue, it turns out the ajv.compile uses Function() to inspect schemas at runtime. See source .

That being said, to fix this issue, we need to update the script-src to include unsafe-eval. Hopefully this fixes it.