Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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'". #20

Open
alexbruno opened this issue Jul 9, 2015 · 0 comments

Comments

@alexbruno
Copy link

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.179.0
System: Unknown Windows Version
Thrown From: local-server package, v0.1.0

Stack Trace

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'".

At C:\Users\alex.caceres\.atom\packages\local-server\node_modules\express\node_modules\depd\index.js:421

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'".

  at Function.wrapfunction (C:\Users\alex.caceres\.atom\packages\local-server\node_modules\express\node_modules\depd\index.js:421:5)
  at Object.<anonymous> (C:\Users\alex.caceres\.atom\packages\local-server\node_modules\express\node_modules\send\index.js:156:47)
  at Module._compile (module.js:475:26)
  at Object.loadFile [as .js] (C:\Users\alex.caceres\AppData\Local\atom\app-0.179.0\resources\app\src\6to5.js:138:21)
  at Module.load (C:\Users\alex.caceres\AppData\Local\atom\app-0.179.0\resources\app\node_modules\coffee-script\lib\coffee-script\register.js:45:36)
  at Function.Module._load (module.js:325:12)
  at Module.require (module.js:380:17)
  at require (module.js:399:17)
  at Object.<anonymous> (C:\Users\alex.caceres\.atom\packages\local-server\node_modules\express\lib\utils.js:19:12)
  at Module._compile (module.js:475:26)
  at Object.loadFile [as .js] (C:\Users\alex.caceres\AppData\Local\atom\app-0.179.0\resources\app\src\6to5.js:138:21)
  at Module.load (C:\Users\alex.caceres\AppData\Local\atom\app-0.179.0\resources\app\node_modules\coffee-script\lib\coffee-script\register.js:45:36)
  at Function.Module._load (module.js:325:12)
  at Module.require (module.js:380:17)
  at require (module.js:399:17)
  at Object.<anonymous> (C:\Users\alex.caceres\.atom\packages\local-server\node_modules\express\lib\view.js:19:13)
  at Module._compile (module.js:475:26)
  at Object.loadFile [as .js] (C:\Users\alex.caceres\AppData\Local\atom\app-0.179.0\resources\app\src\6to5.js:138:21)
  at Module.load (C:\Users\alex.caceres\AppData\Local\atom\app-0.179.0\resources\app\node_modules\coffee-script\lib\coffee-script\register.js:45:36)
  at Function.Module._load (module.js:325:12)
  at Module.require (module.js:380:17)
  at require (module.js:399:17)
  at Object.<anonymous> (C:\Users\alex.caceres\.atom\packages\local-server\node_modules\express\lib\application.js:22:12)
  at Module._compile (module.js:475:26)
  at Object.loadFile [as .js] (C:\Users\alex.caceres\AppData\Local\atom\app-0.179.0\resources\app\src\6to5.js:138:21)
  at Module.load (C:\Users\alex.caceres\AppData\Local\atom\app-0.179.0\resources\app\node_modules\coffee-script\lib\coffee-script\register.js:45:36)
  at Function.Module._load (module.js:325:12)
  at Module.require (module.js:380:17)
  at require (module.js:399:17)
  at Object.<anonymous> (C:\Users\alex.caceres\.atom\packages\local-server\node_modules\express\lib\express.js:17:13)
  at Module._compile (module.js:475:26)
  at Object.loadFile [as .js] (C:\Users\alex.caceres\AppData\Local\atom\app-0.179.0\resources\app\src\6to5.js:138:21)
  at Module.load (C:\Users\alex.caceres\AppData\Local\atom\app-0.179.0\resources\app\node_modules\coffee-script\lib\coffee-script\register.js:45:36)
  at Function.Module._load (module.js:325:12)
  at Module.require (module.js:380:17)
  at require (module.js:399:17)
  at Object.<anonymous> (C:\Users\alex.caceres\.atom\packages\local-server\node_modules\express\index.js:11:18)
  at Module._compile (module.js:475:26)
  at Object.loadFile [as .js] (C:\Users\alex.caceres\AppData\Local\atom\app-0.179.0\resources\app\src\6to5.js:138:21)
  at Module.load (C:\Users\alex.caceres\AppData\Local\atom\app-0.179.0\resources\app\node_modules\coffee-script\lib\coffee-script\register.js:45:36)
  at Function.Module._load (module.js:325:12)
  at Module.require (module.js:380:17)
  at require (module.js:399:17)
  at LocalServerView.module.exports.LocalServerView.startServer (C:\Users\alex.caceres\.atom\packages\local-server\lib\local-server-view.coffee:31:15)
  at C:\Users\alex.caceres\.atom\packages\local-server\lib\local-server-view.coffee:26:8
  at Server.onListen (C:\Users\alex.caceres\.atom\packages\local-server\node_modules\portfinder\lib\portfinder.js:49:5)
  at Server.g (events.js:202:16)
  at Server.emit (events.js:113:17)
  at net.js:1170:12
  at process._tickCallback (node.js:364:11)

Commands

     -9:29.2 core:backspace (atom-text-editor.editor)
     -9:26.8 core:save (atom-text-editor.editor)
     -9:18.3 project-manager:toggle (ul.list-inline.tab-bar.inset-panel)
     -4:50.4 rib:run-in-browser (atom-text-editor.editor)
  2x -4:00.7 emmet:balance-outward (atom-text-editor.editor)
 19x -3:32.7 core:backspace (atom-text-editor.editor.mini)
     -3:30.1 core:confirm (atom-text-editor.editor.mini)
     -0:10.0 local-server:start (atom-text-editor.editor)

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "one-dark-syntax"
    ]
  }
}

Installed Packages

# User
atom-jinja2, v0.5.0
atom-terminal, v0.8.0
color-picker, v2.0.9
emmet, v2.3.12
file-icons, v1.5.8
javascript-snippets, v1.0.0
language-vue-component, v0.2.0
linter, v1.2.3
local-server, v0.1.0
minimap, v4.11.0
project-manager, v1.15.11

# Dev
No dev packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant