diff options
author | lassulus <lassulus@lassul.us> | 2021-08-25 12:05:35 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-08-25 12:05:35 +0200 |
commit | 33714185ea1331c2fb82a831eaa9900076028c2a (patch) | |
tree | d10dfaeb8ee4d0d4f7526f2c107f4374ab06bdb0 /lass/2configs | |
parent | bb846b5ca921aa07ab85ef0a6258be96d475c78b (diff) |
l paste: allow CORS
Diffstat (limited to 'lass/2configs')
-rw-r--r-- | lass/2configs/paste.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lass/2configs/paste.nix b/lass/2configs/paste.nix index f0847f02a..98ba7c731 100644 --- a/lass/2configs/paste.nix +++ b/lass/2configs/paste.nix @@ -31,6 +31,10 @@ with import <stockholm/lib>; proxy_pass http://127.0.0.1:${toString config.krebs.htgen.imgur.port}; proxy_pass_header Server; ''; + extraConfig = '' + add_header 'Access-Control-Allow-Origin' '*'; + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; + ''; }; services.nginx.virtualHosts."p.krebsco.de" = { enableACME = true; @@ -51,6 +55,10 @@ with import <stockholm/lib>; proxy_pass http://127.0.0.1:${toString config.krebs.htgen.imgur.port}; proxy_pass_header Server; ''; + extraConfig = '' + add_header 'Access-Control-Allow-Origin' '*'; + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; + ''; }; krebs.htgen.paste = { |