mde / ejs

Embedded JavaScript templates -- http://ejs.co
Apache License 2.0
7.79k stars 843 forks source link

Can Ejs be used in a Chrome Extension? #723

Closed MRYingLEE closed 1 year ago

MRYingLEE commented 1 year ago

I tried but couldn't find a way to use it. There was always an error:

Uncaught EvalError: 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' 'wasm-unsafe-eval' 'inline-speculation-rules' http://localhost: http://127.0.0.1:".

The suggested policy was declined by Chrome.

Any ideas?

MRYingLEE commented 1 year ago

Sorry, I just found the issue was duplicated. The issue was closed for there is no practical way to fix it yet.

ExE-Boss commented 1 year ago

Duplicate of https://github.com/mde/ejs/issues/468