]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add fuzzy headers to CORS headers list
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 16 Aug 2018 12:40:44 +0000 (13:40 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 16 Aug 2018 12:41:09 +0000 (13:41 +0100)
src/controller.c

index 5591db264ac110d3414187da0dd06fe08254b695..72220aa3c049380c042de0f4827a1635bd403bf1 100644 (file)
@@ -2876,7 +2876,7 @@ rspamd_controller_handle_unknown (struct rspamd_http_connection_entry *conn_ent,
                rspamd_http_message_add_header (rep, "Access-Control-Allow-Methods",
                                "POST, GET, OPTIONS");
                rspamd_http_message_add_header (rep, "Access-Control-Allow-Headers",
-                                               "Content-Type, Password, Map");
+                                               "Content-Type,Password,Map,Weight,Flag");
                rspamd_http_connection_reset (conn_ent->conn);
                rspamd_http_router_insert_headers (conn_ent->rt, rep);
                rspamd_http_connection_write_message (conn_ent->conn,