Browse Source

Added protection from clickjacking (#706)

pull/794/head
Darknet Villain 8 years ago
parent
commit
99436c1334
  1. 1
      HTTPServer.cpp

1
HTTPServer.cpp

@ -875,6 +875,7 @@ namespace http { @@ -875,6 +875,7 @@ namespace http {
void HTTPConnection::SendReply (HTTPRes& reply, std::string& content)
{
reply.add_header("X-Frame-Options", "SAMEORIGIN");
reply.add_header("Content-Type", "text/html");
reply.body = content;

Loading…
Cancel
Save