lighttpd integtration: be more restrictive with adding headers

This commit is contained in:
Matthias Wirth
2019-07-31 13:10:08 +02:00
parent 33e7868713
commit b23f209178

View File

@@ -11,7 +11,7 @@ url.redirect += (
"^/tar1090$" => "/tar1090/"
)
$HTTP["url"] =~ ".*/chunks/chunk_.*gz$" {
$HTTP["url"] =~ "^/tar1090/chunks/chunk_.*gz$" {
setenv.add-response-header += (
"Access-Control-Allow-Origin" => "*",
"Cache-Control" => "must-revalidate",