brownhci / WebGazer

WebGazer.js: Scalable Webcam EyeTracking Using User Interactions
https://webgazer.cs.brown.edu
Other
3.54k stars 536 forks source link

Content Security Policy #283

Open mrdevver opened 1 year ago

mrdevver commented 1 year ago

Hi team,

I want to integrate your wonderful library into a site but in your code, it has some eval() method that violates the CSP of the website, how should I do in this case to resolve or workaround this? The idea I'm doing is to build a chrome extension that will inject your library into the current webpage but I get into this issue.

Could you please help to advise?

Thank you.

jeffhuang commented 1 year ago

Can you point out where the eval() method is? I couldn't find it in a cursory search.

jeffhuang commented 1 year ago

Oh you know it might be the same problem as this issue here: https://github.com/brownhci/WebGazer/issues/211

Luckily, it seems like there's a proposed PR. Could you test it out?