Просмотр исходного кода

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

This helps paging in Mastodon clients.
grunfink 1 год назад
Родитель
Сommit
38ff37703e
1 измененных файлов с 1 добавлено и 0 удалено
  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 ;");