I have a question about cli use of the node-static
library.
I can go to a folder and just run static
. Which serves the directory on port 8080.
I can see that -H is the option to format but I'm not sure how to pass in the options. Here is what I'm trying:
static -H "{'Access-Control-Allow-Origin': '*'}"
Also:
static -H {'Access-Control-Allow-Origin': '*'}
Which returns undefined:1
What is the proper way to pass the header option?