Skip to content

Commit

Permalink
[webconsole] security hardening headers (closes #1464)
Browse files Browse the repository at this point in the history
Signed-off-by: r4sas <[email protected]>
  • Loading branch information
r4sas committed Apr 10, 2020
1 parent b7c206c commit b3974cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions daemon/HTTPServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1141,6 +1141,8 @@ namespace http {
void HTTPConnection::SendReply (HTTPRes& reply, std::string& content)
{
reply.add_header("X-Frame-Options", "SAMEORIGIN");
reply.add_header("X-Content-Type-Options", "nosniff");
reply.add_header("X-XSS-Protection", "1; mode=block");
reply.add_header("Content-Type", "text/html");
reply.body = content;

Expand Down

0 comments on commit b3974cb

Please sign in to comment.