From f0023cf5754810158f5309f448329ad6f7f2da4e Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Sun, 1 Feb 2015 15:59:49 +0200 Subject: [PATCH] Remove OPTIONS from webWrapper --- pdns/webserver.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pdns/webserver.cc b/pdns/webserver.cc index d4bfdedb3d..506c06af97 100644 --- a/pdns/webserver.cc +++ b/pdns/webserver.cc @@ -170,10 +170,6 @@ void WebServer::registerApiHandler(const string& url, HandlerFunction handler) { static void webWrapper(WebServer::HandlerFunction handler, HttpRequest* req, HttpResponse* resp) { const string& web_password = arg()["webserver-password"]; - if (optionsHandler(req, resp)) return; - - resp->headers["access-control-allow-origin"] = "*"; - if (!web_password.empty()) { bool auth_ok = req->compareAuthorization(web_password); if (!auth_ok) { -- 2.47.2