Bug #3594
closedMicro Forwarder: Config page in Chrome refuses to execute script
100%
Description
In Chrome, the Micro Forwarder Config page does load. But the buttons don't work. The console under More Tools -> Developer Tools says:
"Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem: chrome-extension-resource:". Either the 'unsafe-inline' keyword, a hash ('sha256-6VtUf9aBzRxMH3M/YzUbmML2ET4pZ7z9kstGiVryhCE='), or a nonce ('nonce-...') is required to enable inline execution."
Do we want to add the 'unsafe-inline' keyword?
Updated by Wentao Shang over 8 years ago
- Assignee set to Wentao Shang
This is the same error message I got with the previous version of the pop-up page. I think we can use the same solution here: just move all the inline code into the separate js file. I can try to make a patch.
Updated by Anonymous over 8 years ago
Thanks. Give it a try. Please pull first since I made a little change to config.html to fix bug #3586 :
https://github.com/named-data/ndn-js/commit/182209cd1e698f7294e514275b9c300ac0c31415
Updated by Wentao Shang over 8 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Fixed the problem by moving all the inline JS code into a separate config.js file.