jquery-xpath icon indicating copy to clipboard operation
jquery-xpath copied to clipboard

Not working anymore in chrome extension v3 manifest

Open AndriusCTR opened this issue 3 years ago • 6 comments

"Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'"."

In other words, the latest chrome extension platform V3 does not allow eval and thus can't use this great library any more.

Any solutions?

AndriusCTR avatar Apr 09 '21 16:04 AndriusCTR

The library does not appear to be using eval function (why should it?). The minimized version however does use Function constructor, which may cause the problem. Can you try not-minimized version maybe and report here?

ilinsky avatar Apr 09 '21 17:04 ilinsky

Thanks, yeah full version seems to work properly.

I wonder if it's possible to have minimized version without eval...

AndriusCTR avatar Apr 09 '21 19:04 AndriusCTR

Yes, the base engine has just been revived, and the dependant libraries builds will soon be created and published.

ilinsky avatar Apr 09 '21 19:04 ilinsky

Thanks

AndriusCTR avatar Apr 10 '21 06:04 AndriusCTR

Any update on this?

bonjour-anuj avatar Sep 09 '21 11:09 bonjour-anuj

No update yet.

ilinsky avatar Sep 17 '21 13:09 ilinsky