diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-11 13:02:18 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-11 13:02:18 +0000 |
commit | 961285e2248bb1860314a32ceec21797038fb829 (patch) | |
tree | a5742d1527f736757084b91e077a7de32d34e251 /src/controller.c | |
parent | 8cb0e4aa8199af52316806f41f1a7cd1e25ceedb (diff) | |
download | rspamd-961285e2248bb1860314a32ceec21797038fb829.tar.gz rspamd-961285e2248bb1860314a32ceec21797038fb829.zip |
[WebUI] Add Access-Control-Allow-Origin for cluster management
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c index 73c63d483..cae23d311 100644 --- a/src/controller.c +++ b/src/controller.c @@ -3499,6 +3499,10 @@ start_controller_worker (struct rspamd_worker *worker) rspamd_controller_handle_custom); } + if (worker->srv->cfg->neighbours && worker->srv->cfg->neighbours->len > 0) { + rspamd_http_router_add_header (ctx->http, + "Access-Control-Allow-Origin", "*"); + } ctx->resolver = dns_resolver_init (worker->srv->logger, ctx->ev_base, |