add security headers to nginx responses
This commit is contained in:
@@ -5,6 +5,11 @@ server {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# SPA ve statik dosyalarda API ile aynı temel tarayıcı güvenlik politikaları.
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header Referrer-Policy "no-referrer" always;
|
||||
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
|
||||
|
||||
include /etc/nginx/mime.types;
|
||||
# Vite, pdf.js worker'ını .mjs uzantısıyla üretiyor; Debian'ın mime.types
|
||||
# dosyasında mjs yok → application/octet-stream sunuluyordu ve tarayıcı
|
||||
|
||||
Reference in New Issue
Block a user