-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_headers
More file actions
55 lines (43 loc) · 1.7 KB
/
_headers
File metadata and controls
55 lines (43 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Security Headers for ZeoSpec Website
# Enforce HTTPS
/*
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
# Content Security Policy
/*
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' https://www.googletagmanager.com https://www.google-analytics.com https://www.clarity.ms https://cdn.jsdelivr.net https://www.gstatic.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.jsdelivr.net; font-src 'self' https://fonts.gstatic.com https://cdn.jsdelivr.net; img-src 'self' data: https:; connect-src 'self' https://www.google-analytics.com https://www.clarity.ms https://docs.google.com; frame-src https://docs.google.com https://timesync.novocall.co; object-src 'none'; base-uri 'self'; form-action 'self' https://docs.google.com;
# XSS Protection
/*
X-XSS-Protection: 1; mode=block
# Prevent MIME type sniffing
/*
X-Content-Type-Options: nosniff
# Prevent clickjacking
/*
X-Frame-Options: DENY
# Referrer Policy
/*
Referrer-Policy: strict-origin-when-cross-origin
# Permissions Policy
/*
Permissions-Policy: geolocation=(), microphone=(), camera=()
# Admin panel - additional security
/admin/*
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: no-referrer
# API endpoints - if any
/api/*
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
# Long cache for static assets
/assets/*.css
Cache-Control: public, max-age=31536000, immutable
/js/*.js
Cache-Control: public, max-age=31536000, immutable
/images/*
Cache-Control: public, max-age=31536000, immutable
# HTML should not be cached aggressively
/*
Cache-Control: no-cache