mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	[webconsole] security hardening headers (closes #1464)
Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
		
							parent
							
								
									b7c206c44b
								
							
						
					
					
						commit
						b3974cb52a
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue