Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
rbfsmi.imt
rbfsmi-ansible
Commits
534ea28b
Commit
534ea28b
authored
Mar 07, 2021
by
Jan-Oliver Opdenhövel
Browse files
Adding the XSS protection headers for Element
parent
4f5a8a44
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/fsmi-matrix/templates/nginx/nginx.conf
View file @
534ea28b
...
...
@@ -41,6 +41,11 @@ http {
location
/
{
root
/usr/share/webapps/element
;
index
index.html
;
add_header
X-Frame-Options
SAMEORIGIN
;
add_header
X-Content-Type-Options
nosniff
;
add_header
X-XSS-Protection
"1
;
mode=block"
;
add_header
Content-Security-Policy
"frame-ancestors
'none'"
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment