CLOUD: Add "minimal mode" in LocalWebserver

StorageWizardDialog now runs LocalWebserver in "minimal mode" for
security reasons. In this mode server uses only those handlers which
state to support it.

There are two handlers which support minimal mode: IndexPageHandler
(which handles `code` requests needed by StorageWizardDialog) and
ResourceHandler (which provides inner resources like `style.css` or
`logo.png` from `wwwroot.zip` archive).
This commit is contained in:
Alexander Tkachev 2016-08-01 12:54:54 +06:00
parent a1de322c18
commit 126fe9c845
8 changed files with 36 additions and 14 deletions

View file

@ -33,6 +33,7 @@ public:
virtual ~BaseHandler() {}
virtual void handle(Client &) = 0;
virtual bool minimalModeSupported() { return false; }
};
} // End of namespace Networking