diff options
| author | grunfink <grunfink@comam.es> | 2025-05-09 08:37:16 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-05-09 08:37:16 +0200 |
| commit | 38ff37703ef9286b86ee18c81e70f0e218207373 (patch) | |
| tree | d0292782972e0fd5dbe9eac5a44c1f92b65a4c18 | |
| parent | 12107401ea2721edbfb8affacefb242409dd271f (diff) | |
Added header "access-control-expose-headers" with the "Link" value.
This helps paging in Mastodon clients.
| -rw-r--r-- | httpd.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 ;"); |