Redirects & Headers
Configure redirect rules and custom response headers in .sandbar/config.toml.
Redirects
Section titled “Redirects”[redirects]"/old-path" = { to = "/new-path", status = 301 }"/blog/*" = { to = "/articles/:splat", status = 301 }Redirects are synced to your site configuration on each deploy.
Custom headers
Section titled “Custom headers”[headers]"/api/*" = { "Access-Control-Allow-Origin" = "*" }"/*" = { "X-Frame-Options" = "DENY", "X-Content-Type-Options" = "nosniff" }Headers are applied via CDN configuration on deploy.