Explorar el Código

When ssl is enabled only allow https content within the site

Bob Mottram hace 8 años
padre
commit
5a12545657
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      src/freedombone-utils-web

+ 1
- 0
src/freedombone-utils-web Ver fichero

134
     echo '    ssl_prefer_server_ciphers on;' >> $filename
134
     echo '    ssl_prefer_server_ciphers on;' >> $filename
135
     echo "    ssl_protocols $SSL_PROTOCOLS;" >> $filename
135
     echo "    ssl_protocols $SSL_PROTOCOLS;" >> $filename
136
     echo "    ssl_ciphers '$SSL_CIPHERS';" >> $filename
136
     echo "    ssl_ciphers '$SSL_CIPHERS';" >> $filename
137
+    echo "    add_header Content-Security-Policy \"default-src https:; script-src https: 'unsafe-inline'; style-src https: 'unsafe-inline'\";" >> $filename
137
     #nginx_stapling $1
138
     #nginx_stapling $1
138
 }
139
 }
139
 
140