Fix CSP for dapps that require eval. (#7867) (#7903)

* Add allowJsEval to manifest.

* Enable 'unsafe-eval' if requested in manifest.
This commit is contained in:
Afri Schoedon
2018-02-15 12:21:29 +01:00
committed by GitHub
parent 62be23eef5
commit 5fc06c0e24
16 changed files with 41 additions and 52 deletions

View File

@@ -319,12 +319,14 @@ mod tests {
).allow_dapps(true);
let handler = local::Dapp::new(pool, path, EndpointInfo {
id: None,
name: "fake".into(),
description: "".into(),
version: "".into(),
author: "".into(),
icon_url: "".into(),
local_url: Some("".into()),
allow_js_eval: None,
}, Default::default(), None);
// when