summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-05-25 17:42:56 +0200
committerlassulus <lassulus@lassul.us>2022-05-25 17:42:56 +0200
commitd9b09371ecd31e35bd8bbd1d9e929237e52132b1 (patch)
tree9c792a231bed8023ab566f3739253f1dbfa15318 /lass
parent1c02415b6e95c0fbb920fd2bfb5f4b975f1c7fbe (diff)
l radio news: remove duplicate CORS headers
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/radio/news.nix4
1 files changed, 0 insertions, 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