File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,10 @@ http {
121
121
expires max;
122
122
}
123
123
124
+ add_header X-Content-Type-Options "no-sniff";
125
+ add_header X-Frame-Options "SAMEORIGIN";
126
+ add_header X-XSS-Protection "1; mode=block";
127
+
124
128
add_header Strict-Transport-Security "max-age=31536000" always;
125
129
add_header Vary 'Accept, Accept-Encoding, Cookie';
126
130
proxy_set_header Host $http_host;
Original file line number Diff line number Diff line change @@ -13,12 +13,6 @@ impl SecurityHeaders {
13
13
pub fn new ( uploader : & Uploader ) -> Self {
14
14
let mut headers = HashMap :: new ( ) ;
15
15
16
- headers. insert ( "X-Content-Type-Options" . into ( ) , vec ! [ "nosniff" . into( ) ] ) ;
17
-
18
- headers. insert ( "X-Frame-Options" . into ( ) , vec ! [ "SAMEORIGIN" . into( ) ] ) ;
19
-
20
- headers. insert ( "X-XSS-Protection" . into ( ) , vec ! [ "1; mode=block" . into( ) ] ) ;
21
-
22
16
let s3_host = match * uploader {
23
17
Uploader :: S3 {
24
18
ref bucket,
You can’t perform that action at this time.
0 commit comments