mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-06 10:54:14 +00:00
Merge pull request #794 from l-n-s/reseed_from_zip
Added protection from clickjacking (#706)
This commit is contained in:
commit
2ed356be65
@ -875,6 +875,7 @@ namespace http {
|
|||||||
|
|
||||||
void HTTPConnection::SendReply (HTTPRes& reply, std::string& content)
|
void HTTPConnection::SendReply (HTTPRes& reply, std::string& content)
|
||||||
{
|
{
|
||||||
|
reply.add_header("X-Frame-Options", "SAMEORIGIN");
|
||||||
reply.add_header("Content-Type", "text/html");
|
reply.add_header("Content-Type", "text/html");
|
||||||
reply.body = content;
|
reply.body = content;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user