HTTP Strict Transport Security (HSTS) via terraform

Hello,
Does someone made configurations HTTP Strict Transport Security (HSTS) via terraform?
I can’t find configurations for in into modules.

Could someone point when it can be.
Thank you in advance.

You should be able to do it with something like

resource "cloudflare_zone_settings_override" "test" {
    zone_id = var.cloudflare_zone_id
    settings {
        security_header {
            enabled = true
            preload = <bool>
            max_age = <int>
            include_subdomains = <bool>
            nosniff = <bool>
        }
    }
}

Zone Settings Override and Security Header

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.