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

Open
Umcaruje opened this issue Aug 6, 2015 · 0 comments

Comments

@Umcaruje
Copy link

Umcaruje commented Aug 6, 2015

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.180.0
System: linux 3.19.0-25-generic
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 /home/umcaruje/.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 (/home/umcaruje/.atom/packages/local-server/node_modules/express/node_modules/depd/index.js:421:5)
  at Object.<anonymous> (/home/umcaruje/.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] (/usr/share/atom/resources/app/src/6to5.js:138:21)
  at Module.load (module.js:370:32)
  at Function.Module._load (module.js:325:12)
  at Module.require (module.js:380:17)
  at require (module.js:399:17)
  at Object.<anonymous> (/home/umcaruje/.atom/packages/local-server/node_modules/express/lib/utils.js:19:12)
  at Module._compile (module.js:475:26)
  at Object.loadFile [as .js] (/usr/share/atom/resources/app/src/6to5.js:138:21)
  at Module.load (module.js:370:32)
  at Function.Module._load (module.js:325:12)
  at Module.require (module.js:380:17)
  at require (module.js:399:17)
  at Object.<anonymous> (/home/umcaruje/.atom/packages/local-server/node_modules/express/lib/view.js:19:13)
  at Module._compile (module.js:475:26)
  at Object.loadFile [as .js] (/usr/share/atom/resources/app/src/6to5.js:138:21)
  at Module.load (module.js:370:32)
  at Function.Module._load (module.js:325:12)
  at Module.require (module.js:380:17)
  at require (module.js:399:17)
  at Object.<anonymous> (/home/umcaruje/.atom/packages/local-server/node_modules/express/lib/application.js:22:12)
  at Module._compile (module.js:475:26)
  at Object.loadFile [as .js] (/usr/share/atom/resources/app/src/6to5.js:138:21)
  at Module.load (module.js:370:32)
  at Function.Module._load (module.js:325:12)
  at Module.require (module.js:380:17)
  at require (module.js:399:17)
  at Object.<anonymous> (/home/umcaruje/.atom/packages/local-server/node_modules/express/lib/express.js:17:13)
  at Module._compile (module.js:475:26)
  at Object.loadFile [as .js] (/usr/share/atom/resources/app/src/6to5.js:138:21)
  at Module.load (module.js:370:32)
  at Function.Module._load (module.js:325:12)
  at Module.require (module.js:380:17)
  at require (module.js:399:17)
  at Object.<anonymous> (/home/umcaruje/.atom/packages/local-server/node_modules/express/index.js:11:18)
  at Module._compile (module.js:475:26)
  at Object.loadFile [as .js] (/usr/share/atom/resources/app/src/6to5.js:138:21)
  at Module.load (module.js:370:32)
  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 (/home/umcaruje/.atom/packages/local-server/lib/local-server-view.coffee:31:15)
  at /home/umcaruje/.atom/packages/local-server/lib/local-server-view.coffee:26:8
  at Server.onListen (/home/umcaruje/.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

     -2:02.1 grammar-selector:show (atom-text-editor.editor)
     -1:51.3 local-server:start (atom-text-editor.editor)
  2x -0:39.9 atomatigit:show (atom-text-editor.editor)
     -0:01.2 local-server:start (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-light-ui)

Config

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

Installed Packages

# User
atomatigit, v1.5.4
language-diff, v0.3.0
local-server, v0.1.0
markdown-preview-pandoc, v0.0.14
travis-ci-status, v0.16.0

# 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