Allow cross-site HTTP requests to data.json.

This commit is contained in:
Frederik De Bleser
2015-03-03 14:43:35 +01:00
parent 4c53e25143
commit 0fe347c8f3

View File

@ -2260,6 +2260,7 @@ int handleHTTPRequest(struct client *c) {
"Content-Type: %s\r\n"
"Connection: %s\r\n"
"Content-Length: %d\r\n"
"Access-Control-Allow-Origin: *\r\n"
"\r\n",
ctype,
keepalive ? "keep-alive" : "close",