Custom Headers
You can define custom HTTP response headers for your static site directly from the Static Page Settings in the RunxBuild dashboard. This is useful for configuring security policies, caching behavior, or custom application headers.
Common use cases include setting Cache-Control, Content-Security-Policy, or X-Frame-Options.
Example: Custom Headers Configuration
{
"Type": "None",
"Path": "/*",
"Header Name": "X-Frame-Options",
"Value": "DENY"
}
Common Headers
| Header | Purpose |
|---|---|
Cache-Control | Control caching behavior |
Content-Security-Policy | Prevent XSS attacks |
X-Frame-Options | Prevent clickjacking |
X-Content-Type-Options | Prevent MIME sniffing |
Referrer-Policy | Control referrer information |