-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path_headers
More file actions
14 lines (12 loc) · 925 Bytes
/
Copy path_headers
File metadata and controls
14 lines (12 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Cloudflare Pages Headers Configuration
/*
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: camera=(), microphone=(), geolocation=(self)
Content-Security-Policy: default-src 'self'; base-uri 'self'; object-src 'none'; frame-ancestors 'none'; form-action 'self'; script-src 'self' https://webapi.amap.com; connect-src 'self' https://restapi.amap.com https://webapi.amap.com https://*.amap.com https://upload.imagedelivery.net https://imagedelivery.net; img-src 'self' data: blob: https:; style-src 'self' 'unsafe-inline'; font-src 'self' data:; manifest-src 'self'; worker-src 'self' blob:
/api/*
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization, X-API-Key