---
title: "Add HSTS header"
method: PUT
path: "/add-hsts"
tags: ["configuration"]
---

# Add HSTS header

`PUT /add-hsts`

Adds HSTS header to underlying caddy configuration. When added, 'Strict-Transport-Security' header is returned for each HTTPS response

## Response `200`

HSTS header has been added

## Other responses

- `401` — Unauthorized

## Changes

- **2024-01-26** `d9c6d2d27ddb` — 1 info
  - endpoint added
- **2022-02-23** `91290fda00cc` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/snowplow/apis/snowplow-mini/changes/add-hsts/put.md)

---

[API](https://skmtc.dev/snowplow/apis/snowplow-mini.md) · [All operations](https://skmtc.dev/snowplow/apis/snowplow-mini/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/snowplow/snowplow-mini/revisions/a18ed17799ee/schema)
