commit 38ff377

grunfink  ·  2025-05-09 06:37:16 +0000 UTC
parent 1210740
Added header "access-control-expose-headers" with the "Link" value.

This helps paging in Mastodon clients.
1 files changed,  +1, -0
+1, -0
1@@ -556,6 +556,7 @@ void httpd_connection(FILE *f)
2 
3     headers = xs_dict_append(headers, "access-control-allow-origin", "*");
4     headers = xs_dict_append(headers, "access-control-allow-headers", "*");
5+    headers = xs_dict_append(headers, "access-control-expose-headers", "Link");
6 
7     /* disable any form of fucking JavaScript */
8     headers = xs_dict_append(headers, "Content-Security-Policy", "script-src ;");