Project

General

Profile

Bug #3594

Micro Forwarder: Config page in Chrome refuses to execute script

Added by Jeff Thompson over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
04/12/2016
Due date:
% Done:

100%

Estimated time:

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?

#1

Updated by Wentao Shang over 5 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.

#2

Updated by Jeff Thompson over 5 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

#3

Updated by Wentao Shang over 5 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.

Also available in: Atom PDF