diff options
Diffstat (limited to 'src/HttpServer.h')
| -rw-r--r-- | src/HttpServer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/HttpServer.h b/src/HttpServer.h index 2f8d6329..c8dbc8c2 100644 --- a/src/HttpServer.h +++ b/src/HttpServer.h @@ -68,6 +68,7 @@ private: std::string password_; bool acceptsPersistentConnection_; bool acceptsGZip_; + std::string allowOrigin_; public: HttpServer(const SharedHandle<SocketCore>& socket, DownloadEngine* e); @@ -123,6 +124,11 @@ public: { return socketRecvBuffer_; } + + void setAllowOrigin(const std::string& allowOrigin) + { + allowOrigin_ = allowOrigin; + } }; } // namespace aria2 |
