From d31440d2357080739109a55726c235936034cbf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sun, 2 Jun 2024 23:02:22 +0200 Subject: [PATCH] Add CORS headers to kosmos.social LNURL paths --- .../kosmos-mastodon/templates/default/nginx_conf_mastodon.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/site-cookbooks/kosmos-mastodon/templates/default/nginx_conf_mastodon.erb b/site-cookbooks/kosmos-mastodon/templates/default/nginx_conf_mastodon.erb index a0a3739..e0d404d 100644 --- a/site-cookbooks/kosmos-mastodon/templates/default/nginx_conf_mastodon.erb +++ b/site-cookbooks/kosmos-mastodon/templates/default/nginx_conf_mastodon.erb @@ -34,6 +34,7 @@ server { <% end %> location ~ ^/.well-known/(lnurlp|keysend) { + add_header 'Access-Control-Allow-Origin' '*'; proxy_ssl_server_name on; proxy_pass https://accounts.kosmos.org; }