Merge pull request #72 from fdb/add-cors-header
Allow cross-site HTTP requests to data.json.
This commit is contained in:
commit
ae736c147d
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user