From 38ff37703ef9286b86ee18c81e70f0e218207373 Mon Sep 17 00:00:00 2001 From: grunfink Date: Fri, 9 May 2025 08:37:16 +0200 Subject: Added header "access-control-expose-headers" with the "Link" value. This helps paging in Mastodon clients. --- httpd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'httpd.c') diff --git a/httpd.c b/httpd.c index 836c256..6f7d69b 100644 --- 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 ;"); -- cgit v1.2.3