Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add Access-Control-Allow-Headers: *

  • Loading branch information...
commit 20b540883422020e00152d572e660b78dfeff4c2 1 parent b7fb732
@nicolasff authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  http.c
View
1  http.c
@@ -26,6 +26,7 @@ http_response_init(struct worker *w, int code, const char *msg) {
/* Cross-Origin Resource Sharing, CORS. */
http_response_set_header(r, "Allow", "GET,POST,PUT,OPTIONS");
http_response_set_header(r, "Access-Control-Allow-Origin", "*");
+ http_response_set_header(r, "Access-Control-Allow-Headers", "*");
return r;
}
Please sign in to comment.
Something went wrong with that request. Please try again.