WAFGOPreparing your page
Setup guide

API documentation

DEVELOPER RESOURCES · API REFERENCE

Explore WAFGO API services, request paths and message definitions. Browse by permission role to find the parameters and response structures for your integration.

Download JSON documentation
151 services1063 interfaces

References

HSTS

json:hsts

Original definition
# HSTS

## Definition
~~~json
{
  "isOn": "Whether enabled",
  "maxAge": "Maximum validity period in seconds",
  "includeSubDomains": "Optional: whether to include subdomains",
  "preload": "Optional: whether to enable preloading",
  "domains": ["Optional: supported domain 1", "Optional: supported domain 2" ...]
}
~~~

Where:
* `maxAge` can be one day (86400 seconds) or longer.
* Omitting `domains` applies the configuration to all domains.

## Examples
### Apply to all domains
~~~json
{
  "isOn": true,
  "maxAge": 86400,
  "includeSubDomains":false, 
  "preload":false,
  "domains":[]
}
~~~

### Apply to specific domains
~~~json
{
  "isOn": true,
  "maxAge": 86400,
  "includeSubDomains":false, 
  "preload":false,
  "domains":["example.com", "www.example.com"]
}
~~~

Descriptions and comments follow your language. Request paths, method names, field names and types match the original API definitions.

Setup guide