Skip to content

CSP unsafe-inline required to use? #616

@lol768

Description

@lol768

Version

4.1.3

Browser and OS info

Firefox 59.0b8

Steps to reproduce

  • Read README
  • Attempt to use Vue dev tools on site with strict CSP headers
  • Check console for errors:

Content Security Policy: The page’s settings blocked the loading of a resource at self (“script-src”). Source: ;(function(e){let t={};if(e.hasOwnProper....
Page:1

Content Security Policy: The page’s settings blocked the loading of a resource at self (“script-src”). Source: ;(function(e){setTimeout(()=>{const n=do....
Page:1

Content Security Policy: The page’s settings blocked the loading of a resource at self (“script-src”). Source: ;(function(e){let n=null,t=0;const o={no....
Page:1

  • Re-read README.md hoping that requirement to inject scripts in this way is documented somewhere
  • Relax CSP headers to allow unsafe-inline
  • Vue devtools start working

What is expected?

  • Dev tools should operate without having to compromise on site security by allowing inline scripts
  • If this isn't technically possible, this incompatibility should be documented clearly in the README

What is actually happening?

  • Dev tools cannot detect running Vue instance

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions