From 7710231fc40170d2f0ef2120171298a380fccc46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 7 Apr 2026 16:53:09 +0400 Subject: [PATCH] Add CORS headers for Garage web access Fixes Discourse plugin JS usage --- site-cookbooks/kosmos_garage/templates/nginx_conf_web.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/site-cookbooks/kosmos_garage/templates/nginx_conf_web.erb b/site-cookbooks/kosmos_garage/templates/nginx_conf_web.erb index 227cb3f..c9aea22 100644 --- a/site-cookbooks/kosmos_garage/templates/nginx_conf_web.erb +++ b/site-cookbooks/kosmos_garage/templates/nginx_conf_web.erb @@ -18,6 +18,7 @@ server { } location / { + add_header 'Access-Control-Allow-Origin' '*' always; proxy_intercept_errors on; proxy_cache garage_cache; proxy_pass http://garage_web;