]> granicus.if.org Git - pdns/commitdiff
Remove OPTIONS from webWrapper
authorAki Tuomi <cmouse@desteem.org>
Sun, 1 Feb 2015 13:59:49 +0000 (15:59 +0200)
committerAki Tuomi <cmouse@desteem.org>
Sun, 1 Feb 2015 13:59:49 +0000 (15:59 +0200)
pdns/webserver.cc

index d4bfdedb3d5dbe151affb819fb639f8f3a55b00b..506c06af9750e177cbd1034757d58249bd355224 100644 (file)
@@ -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) {