-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_headers
More file actions
54 lines (44 loc) · 1.62 KB
/
Copy path_headers
File metadata and controls
54 lines (44 loc) · 1.62 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
# Cloudflare Pages Custom Headers for Ideas to Innovation Saudi
# Security Headers for all routes
/*
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: geolocation=(self), microphone=(), camera=()
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Saudi-Platform: Vision-2030-Aligned
X-Arabic-Support: RTL-Enabled
X-Locale-Support: ar-SA,en-US
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' https://www.googletagmanager.com https://www.google-analytics.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: https:; connect-src 'self' https://api.anthropic.com https://api.idea-to-market.sa https://www.google-analytics.com; frame-ancestors 'none'; upgrade-insecure-requests
# Cache static assets
/assets/*
Cache-Control: public, max-age=31536000, immutable
# Cache images
/images/*
Cache-Control: public, max-age=86400
/icons/*
Cache-Control: public, max-age=31536000
# PWA files
/manifest.json
Cache-Control: public, max-age=86400
Content-Type: application/manifest+json
/sw.js
Cache-Control: no-cache
# API routes - no cache
/api/*
Cache-Control: no-store
X-Robots-Tag: noindex
# Arabic language header for Arabic pages
/ar/*
Content-Language: ar
X-Content-Language: ar-SA
# English language header for English pages
/en/*
Content-Language: en
X-Content-Language: en-US
# Saudi Arabia specific headers
/*
X-Country-Code: SA
X-Currency: SAR
X-Timezone: Asia/Riyadh