add report uri everywhere

pull/83/head
Aevann 2022-12-27 04:38:08 +02:00
parent 141c54f760
commit b3e6cdd9d0
4 changed files with 5 additions and 8 deletions

View File

@ -3,8 +3,6 @@
<head>
<meta name="description" content="People die and this is the place to see it. You only have one life, don't make the mistakes seen here.">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'self'; font-src 'self'; img-src 'self';">
<link rel="stylesheet" href="/assets/css/main.css?v=4032">
<link rel="stylesheet" href="/assets/css/midnight.css?v=4000">

View File

@ -3,8 +3,6 @@
<head>
<meta name="description" content="rdrama.net caters to drama in all forms such as: Real life, videos, photos, gossip, rumors, news sites, Reddit, and Beyond™. There isn&#39;t drama we won&#39;t touch, and we want it all!">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'self'; font-src 'self'; img-src 'self';">
<link rel="stylesheet" href="/assets/css/main.css?v=4032">
<link rel="stylesheet" href="/assets/css/midnight.css?v=4000">

View File

@ -1,5 +1,5 @@
include includes/headers;
add_header Content-Security-Policy "default-src 'none';";
add_header Content-Security-Policy "default-src 'none'; report-uri /csp_violations;";
sendfile on;
sendfile_max_chunk 1m;
tcp_nopush on;

View File

@ -5,7 +5,7 @@ server {
listen [::]:80;
proxy_set_header Host $http_host;
include includes/headers;
add_header Content-Security-Policy "default-src 'none';";
add_header Content-Security-Policy "default-src 'none'; report-uri /csp_violations;";
location / {
proxy_pass http://localhost:5000/;
@ -19,7 +19,7 @@ server {
proxy_set_header Connection "Upgrade";
proxy_pass http://localhost:5001/socket.io;
include includes/headers;
add_header Content-Security-Policy "default-src 'none';";
add_header Content-Security-Policy "default-src 'none'; report-uri /csp_violations;";
}
location /chat {
proxy_pass http://localhost:5001/chat;
@ -78,7 +78,7 @@ server {
}
location =/offline.html {
alias /rDrama/files/assets/offline.html;
add_header Content-Security-Policy "default-src 'none'; style-src 'unsafe-inline'; img-src data:;";
add_header Content-Security-Policy "default-src 'none'; style-src 'unsafe-inline'; img-src data:; report-uri /csp_violations;";
}
@ -87,5 +87,6 @@ server {
location =/502.html {
alias /rDrama/files/templates/errors/rDrama/502.html;
add_header Cache-Control "no-store";
add_header Content-Security-Policy "default-src 'none'; style-src 'self'; font-src 'self'; img-src 'self'; report-uri /csp_violations;";
}
}