Skip to content

Commit ae736c1

Browse files
committed
Merge pull request MalcolmRobb#72 from fdb/add-cors-header
Allow cross-site HTTP requests to data.json.
2 parents 4c53e25 + 0fe347c commit ae736c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dump1090.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2260,6 +2260,7 @@ int handleHTTPRequest(struct client *c) {
22602260
"Content-Type: %s\r\n"
22612261
"Connection: %s\r\n"
22622262
"Content-Length: %d\r\n"
2263+
"Access-Control-Allow-Origin: *\r\n"
22632264
"\r\n",
22642265
ctype,
22652266
keepalive ? "keep-alive" : "close",

0 commit comments

Comments
 (0)