Skip to content

Commit

Permalink
added headers
Browse files Browse the repository at this point in the history
  • Loading branch information
alihm committed Feb 26, 2023
1 parent 66cca56 commit f60d214
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ events { worker_connections 1024; }
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
add_header X-Frame-Options SAMEORIGIN;
# Headers
add_header X-XSS-Protection "1; mode=block";
add_header Content-Security-Policy "default-src 'self'; font-src *;img-src * data:; script-src *; style-src *";
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options nosniff;
sendfile on;
tcp_nopush on;
tcp_nodelay off;
Expand Down

0 comments on commit f60d214

Please sign in to comment.