]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Remove OPTIONS from webWrapper 2162/head
authorAki Tuomi <cmouse@desteem.org>
Sun, 1 Feb 2015 13:59:49 +0000 (15:59 +0200)
committerAki Tuomi <cmouse@desteem.org>
Mon, 2 Feb 2015 07:45:04 +0000 (09:45 +0200)
pdns/webserver.cc

index 9c1be2f03bc871c1224f5098ef2f086294a4f63b..920ea3acb91e758996e63fbc3e8cdb9fd9d4d5cd 100644 (file)
@@ -174,10 +174,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) {