Merge pull request #74 from ianrenton/master

Use set-response-header instead of add-response-header
This commit is contained in:
Oliver Jowett 2020-08-02 22:48:09 -05:00 committed by GitHub
commit 49d95744f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ $SERVER["socket"] == ":8080" {
# Add CORS header
server.modules += ( "mod_setenv" )
$HTTP["url"] =~ "^/dump1090-fa/data/.*\.json$" {
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
setenv.set-response-header = ( "Access-Control-Allow-Origin" => "*" )
}
# Uncomment this section to enable SSL traffic (HTTPS) - especially useful