commit 38ff37703ef9286b86ee18c81e70f0e218207373
parent 12107401ea2721edbfb8affacefb242409dd271f
Author: grunfink <grunfink@comam.es>
Date: Fri, 9 May 2025 08:37:16 +0200
Added header "access-control-expose-headers" with the "Link" value.
This helps paging in Mastodon clients.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/httpd.c b/httpd.c
@@ -556,6 +556,7 @@ void httpd_connection(FILE *f)
headers = xs_dict_append(headers, "access-control-allow-origin", "*");
headers = xs_dict_append(headers, "access-control-allow-headers", "*");
+ headers = xs_dict_append(headers, "access-control-expose-headers", "Link");
/* disable any form of fucking JavaScript */
headers = xs_dict_append(headers, "Content-Security-Policy", "script-src ;");