summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-05-09 08:37:16 +0200
committerGravatar grunfink2025-05-09 08:37:16 +0200
commit38ff37703ef9286b86ee18c81e70f0e218207373 (patch)
treed0292782972e0fd5dbe9eac5a44c1f92b65a4c18 /httpd.c
parentFixed crash. (diff)
downloadpenes-snac2-38ff37703ef9286b86ee18c81e70f0e218207373.tar.gz
penes-snac2-38ff37703ef9286b86ee18c81e70f0e218207373.tar.xz
penes-snac2-38ff37703ef9286b86ee18c81e70f0e218207373.zip
Added header "access-control-expose-headers" with the "Link" value.
This helps paging in Mastodon clients.
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c1
1 files changed, 1 insertions, 0 deletions
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)
556 556
557 headers = xs_dict_append(headers, "access-control-allow-origin", "*"); 557 headers = xs_dict_append(headers, "access-control-allow-origin", "*");
558 headers = xs_dict_append(headers, "access-control-allow-headers", "*"); 558 headers = xs_dict_append(headers, "access-control-allow-headers", "*");
559 headers = xs_dict_append(headers, "access-control-expose-headers", "Link");
559 560
560 /* disable any form of fucking JavaScript */ 561 /* disable any form of fucking JavaScript */
561 headers = xs_dict_append(headers, "Content-Security-Policy", "script-src ;"); 562 headers = xs_dict_append(headers, "Content-Security-Policy", "script-src ;");