From d9b09371ecd31e35bd8bbd1d9e929237e52132b1 Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 25 May 2022 17:42:56 +0200 Subject: l radio news: remove duplicate CORS headers --- lass/2configs/radio/news.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lass/2configs/radio/news.nix b/lass/2configs/radio/news.nix index 5c6c5d33a..80e5f9cc8 100644 --- a/lass/2configs/radio/news.nix +++ b/lass/2configs/radio/news.nix @@ -104,8 +104,6 @@ in case "''${Method:-GET} $Request_URI" in "GET /") printf 'HTTP/1.1 200 OK\r\n' - printf 'Access-Control-Allow-Origin: *\r\n'; - printf 'Access-Control-Allow-Methods: GET, POST, OPTIONS\r\n'; printf 'Connection: close\r\n' printf '\r\n' cat "$HOME"/news | jq -sc . @@ -116,8 +114,6 @@ in echo "$payload" | jq 'has("from") and has("to") and has("text")' >&2 echo "$payload" | jq -c '{ from: (.from | fromdate | todate), to: (.to | fromdate | todate), text: .text }' >> "$HOME"/news printf 'HTTP/1.1 200 OK\r\n' - printf 'Access-Control-Allow-Origin: *\r\n'; - printf 'Access-Control-Allow-Methods: GET, POST, OPTIONS\r\n'; printf 'Connection: close\r\n' printf '\r\n' exit -- cgit v1.2.3