summaryrefslogtreecommitdiffstats
path: root/krebs/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-02-23 23:41:38 +0100
committerlassulus <lassulus@lassul.us>2021-02-23 23:41:38 +0100
commit79dab4b2aecd06f2a2a84196af096253a0296418 (patch)
treefdbb64e65bbc1a9598bde9651fe07b1d40be52b0 /krebs/2configs
parentf9bc618fada82326ed371b131eaed34d21626ae9 (diff)
news: allos all CORS
Diffstat (limited to 'krebs/2configs')
-rw-r--r--krebs/2configs/news.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/krebs/2configs/news.nix b/krebs/2configs/news.nix
index ce4e83408..780c270bf 100644
--- a/krebs/2configs/news.nix
+++ b/krebs/2configs/news.nix
@@ -19,6 +19,10 @@
root /var/lib/brockman;
index brockman.json;
'';
+ extraConfig = ''
+ add_header 'Access-Control-Allow-Origin' '*';
+ add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
+ '';
};
};
systemd.tmpfiles.rules = [