@@ -34,13 +34,15 @@ location /setup {
34
34
fastcgi_index index.php;
35
35
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
36
36
include fastcgi_params;
37
- add_header X-Frame-Options "SAMEORIGIN"
38
37
}
39
38
40
39
location ~ ^/setup/(?!pub/). {
41
40
deny all;
42
41
}
43
- add_header X-Frame-Options "SAMEORIGIN";
42
+
43
+ location ~ ^/setup/pub/ {
44
+ add_header X-Frame-Options "SAMEORIGIN";
45
+ }
44
46
}
45
47
46
48
location /update {
@@ -51,14 +53,16 @@ location /update {
51
53
fastcgi_index index.php;
52
54
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
53
55
include fastcgi_params;
54
- add_header X-Frame-Options "SAMEORIGIN"
55
56
}
56
57
57
58
# deny everything but index.php
58
59
location ~ ^/update/(?!pub/). {
59
60
deny all;
60
61
}
61
- add_header X-Frame-Options "SAMEORIGIN"
62
+
63
+ location ~ ^/update/pub/ {
64
+ add_header X-Frame-Options "SAMEORIGIN";
65
+ }
62
66
}
63
67
64
68
location / {
@@ -79,7 +83,7 @@ location /static/ {
79
83
}
80
84
location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ {
81
85
add_header Cache-Control "public";
82
- add_header X-Frame-Options "SAMEORIGIN"
86
+ add_header X-Frame-Options "SAMEORIGIN";
83
87
expires +1y;
84
88
85
89
if (!-f $request_filename) {
@@ -88,7 +92,7 @@ location /static/ {
88
92
}
89
93
location ~* \.(zip|gz|gzip|bz2|csv|xml)$ {
90
94
add_header Cache-Control "no-store";
91
- add_header X-Frame-Options "SAMEORIGIN"
95
+ add_header X-Frame-Options "SAMEORIGIN";
92
96
expires off;
93
97
94
98
if (!-f $request_filename) {
@@ -110,13 +114,13 @@ location /media/ {
110
114
111
115
location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ {
112
116
add_header Cache-Control "public";
113
- add_header X-Frame-Options "SAMEORIGIN"
117
+ add_header X-Frame-Options "SAMEORIGIN";
114
118
expires +1y;
115
119
try_files $uri $uri/ /get.php?$args;
116
120
}
117
121
location ~* \.(zip|gz|gzip|bz2|csv|xml)$ {
118
122
add_header Cache-Control "no-store";
119
- add_header X-Frame-Options "SAMEORIGIN"
123
+ add_header X-Frame-Options "SAMEORIGIN";
120
124
expires off;
121
125
try_files $uri $uri/ /get.php?$args;
122
126
}
0 commit comments