Sfoglia il codice sorgente

Added header "access-control-expose-headers" with the "Link" value.

This helps paging in Mastodon clients.
grunfink 1 anno fa
parent
commit
38ff37703e
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      httpd.c

+ 1 - 0
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 ;");