-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_headers
32 lines (24 loc) · 1.97 KB
/
_headers
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
# Reference: https://developers.cloudflare.com/pages/platform/headers/#prevent-your-pagesdev-deployments-showing-in-search-results
https://:project.pages.dev/*
X-Robots-Tag: index, follow # This allows search engines to index website
https://:project.pages.dev/*
Access-Control-Allow-Origin: https://oss-etiquette.pages.dev # This allows requests only from my website (??)
# (??) When dealing with Cross-Origin Resource Sharing (CORS), the Access-Control-Allow-Origin header is used to specify which origins are allowed to access resources on your server.
# (??) An origin consists of the protocol (http or https), domain and port (if specified), e.g., https://example.com
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:;
X-Frame-Options: SAMEORIGIN
Permissions-Policy: geolocation=(), microphone=(), camera=()
# Strict-Transport-Security
# Enforces HTTPS for the domain and its subdomains, with a long validity period (1 year)
# preload: Indicates readiness to be added to the HSTS preload list
#Content-Security-Policy controls resources loaded on the website, restricts scripts, styles and images to only those served from the same domain ('self'), while allowing inline image data (data:)
# X-Frame-Options prevents clickjacking by restricting the ability to embed your site in an <iframe>
# SAMEORIGIN: Allows framing only from the same origin.
# Permissions-Policy controls browser permissions for sensitive features like geolocation, microphone and camera.
# geolocation=(): Denies access to geolocation.
# microphone=(): Denies microphone access.
# camera=(): Denies camera access.
# Cloudflare Pages might be serving your files with strict MIME types. The sitemap-style.xsl file must be served with the text/xsl MIME type. If Cloudflare serves it as another type (like text/plain), browsers may fail to process it.
/sitemap-style.xsl
Content-Type: text/xsl