Skip to content

Commit

Permalink
Merge pull request MalcolmRobb#72 from fdb/add-cors-header
Browse files Browse the repository at this point in the history
Allow cross-site HTTP requests to data.json.
  • Loading branch information
yuvadm committed Mar 3, 2015
2 parents 4c53e25 + 0fe347c commit ae736c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dump1090.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ae736c1

Please sign in to comment.