File tree 2 files changed +27
-0
lines changed
2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 5
5
ErrorLog ${APACHE_LOG_DIR}/error.log
6
6
CustomLog ${APACHE_LOG_DIR}/access.log combined
7
7
8
+ #################################
9
+ # CSP - Content Security Policy
10
+ #################################
11
+
8
12
# Só permite carregamento de recursos do mesmo domínio
9
13
#Header set Content-Security-Policy "default-src 'self';"
10
14
Original file line number Diff line number Diff line change
1
+ server {
2
+ listen 80 default_server;
3
+ listen [::]:80 default_server;
4
+
5
+ root /var/www/html;
6
+ index index.html index.htm index.nginx-debian.html;
7
+
8
+ server_name _;
9
+
10
+ location / {
11
+ try_files $uri $uri/ =404;
12
+ }
13
+
14
+ #################################
15
+ # CSP - Content Security Policy
16
+ #################################
17
+
18
+ # Só permite carregamento de recursos do mesmo domínio
19
+ #add_header Content-Security-Policy "default-src 'self';"
20
+
21
+ # Só permite carregamento de recursos do mesmo domínio ou da cnd da cloudflare
22
+ add_header Content-Security-Policy "default-src 'self' https://cdnjs.cloudflare.com;"
23
+ }
You can’t perform that action at this time.
0 commit comments