mirror of https://github.com/vector-im/riot-web
				
				
				
			Readme: Add header configuration for apache (#23221)
Adds the same example as for nginx for apache to copy & pastepull/23231/head
							parent
							
								
									e8aa7edbdc
								
							
						
					
					
						commit
						993ea317d7
					
				|  | @ -117,6 +117,13 @@ add_header X-Content-Type-Options nosniff; | |||
| add_header X-XSS-Protection "1; mode=block"; | ||||
| add_header Content-Security-Policy "frame-ancestors 'none'"; | ||||
| ``` | ||||
| For Apache, the configuration looks like: | ||||
| ``` | ||||
| Header set X-Frame-Options SAMEORIGIN | ||||
| Header set X-Content-Type-Options nosniff | ||||
| Header set X-XSS-Protection "1; mode=block" | ||||
| Header set Content-Security-Policy "frame-ancestors 'none'" | ||||
| ``` | ||||
| 
 | ||||
| Note: In case you are already setting a `Content-Security-Policy` header | ||||
| elsewhere, you should modify it to include the `frame-ancestors` directive | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Sebastian Wagner
						Sebastian Wagner