0

Gahhh! How do I get Livereload to stop giving this origin error? I get that normally security keeps you from calling files on your own machine, but I am trying to correct for that. How?

  1. Xampp servers are running.

  2. Then this: open -a 'Google Chrome' --args -allow-file-access-from-files

  3. This is in there:

    enter image description here

  4. My HTML calls on it like so:

enter image description here

So why this error?

enter image description here

FWIW, I can call the file fine with Safari alone (which as you know will let you call files from your own machine.)

Community
  • 1
  • 1
Maggie
  • 1,975
  • 3
  • 15
  • 17

1 Answers1

0

FWIW, this syntax worked:

d3.json("file:///Applications/XAMPP/xamppfiles/htdocs/d3/onedollar/onedollar3.json", function(error, root) {
Maggie
  • 1,975
  • 3
  • 15
  • 17