while true ; do echo -e "HTTP/1.1 200 OK\nAccess-Control-Allow-Origin: *\n\n $(cat index.html)" | nc -l localhost 1500; done
10 January 2017
A very simple http-server:
while true ; do echo -e "HTTP/1.1 200 OK\nAccess-Control-Allow-Origin: *\n\n $(cat index.html)" | nc -l localhost 1500; done