Node.js file to run a local server with access-control-allow-origin

Viewed 1096

I have an html file that has resources in it's directory

(example file tree)

index.html
imgs
  >img1.jpg
  >img2.jpg
  >img3.jpg
js
  >js1.js
  >js2.js

How do I run a node.js server that will allow me to view the HTML file, as well as allow me to access certain websites with the access-control-allow-origin *

I am unfamiliar with node, so the simpler, the better!

Extra: does not necessarily have to be node, just a server that will allow access control

2 Answers
Related