news: allos all CORS

This commit is contained in:
lassulus 2021-02-23 23:41:38 +01:00
parent f9bc618fad
commit 79dab4b2ae

View File

@ -19,6 +19,10 @@
root /var/lib/brockman; root /var/lib/brockman;
index brockman.json; index brockman.json;
''; '';
extraConfig = ''
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
'';
}; };
}; };
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [