HTTPS HSTS policy
38-hsts-policy.yaml
HTTP(S)
What this example does
This example demonstrates https hsts policy.
Checks and behavior
- Sends an GET request to https://api.example.invalid/health.
Adapt example domains, addresses, credentials and thresholds to your environment before use.
YAML configuration
name: HTTPS HSTS policy
url: https://api.example.invalid/health
tests:
security:
hsts_min_age: 31536000