OLD | NEW |
1 # XSS and clickjacking prevention headers | 1 # XSS and clickjacking prevention headers |
2 | 2 |
3 set $csp_frame ""; | 3 set $csp_frame ""; |
4 if ($uri ~ ^/(:?\w\w(_\w\w)?/)?(?:index|firefox|chrome|opera|android|internet-ex
plorer|safari|yandex-browser|maxthon)?$) | 4 if ($uri ~ ^/(:?\w\w(_\w\w)?/)?(?:index|firefox|chrome|opera|android|internet-ex
plorer|safari|yandex-browser|maxthon)?$) |
5 { | 5 { |
6 set $csp_frame "; frame-src www.youtube-nocookie.com;"; | 6 set $csp_frame "; frame-src www.youtube-nocookie.com;"; |
7 } | 7 } |
8 add_header Content-Security-Policy "default-src 'self'; img-src * data:; style-s
rc 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' $csp_
frame"; | 8 add_header Content-Security-Policy "default-src 'self'; img-src * data:; style-s
rc 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' $csp_
frame"; |
9 add_header X-Frame-Options "sameorigin"; | 9 add_header X-Frame-Options "sameorigin"; |
10 | 10 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 try_files $uri @proxied; | 220 try_files $uri @proxied; |
221 } | 221 } |
222 location /subscriptionStatus | 222 location /subscriptionStatus |
223 { | 223 { |
224 try_files $uri @proxied; | 224 try_files $uri @proxied; |
225 } | 225 } |
226 location /jsdoc | 226 location /jsdoc |
227 { | 227 { |
228 try_files $uri @proxied; | 228 try_files $uri @proxied; |
229 } | 229 } |
| 230 location /docs |
| 231 { |
| 232 try_files $uri @proxied; |
| 233 } |
230 location /403.html | 234 location /403.html |
231 { | 235 { |
232 try_files $uri @proxied; | 236 try_files $uri @proxied; |
233 } | 237 } |
234 location @proxied | 238 location @proxied |
235 { | 239 { |
236 proxy_pass https://server_16.adblockplus.org; | 240 proxy_pass https://server_16.adblockplus.org; |
237 proxy_set_header Host adblockplus.org; | 241 proxy_set_header Host adblockplus.org; |
238 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | 242 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
239 } | 243 } |
OLD | NEW |