Merge pull request #72 from fdb/add-cors-header

Allow cross-site HTTP requests to data.json.
This commit is contained in:
Yuval Adam 2015-03-03 16:59:18 +02:00
commit ae736c147d

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",