Forbidden response headers
06-http-header-absent.yaml
HTTP(S)
What this example does
This example demonstrates forbidden response headers.
Checks and behavior
- Sends an GET request to http://127.0.0.1:8080/health.
- Validates required, forbidden or matching HTTP headers.
Adapt example domains, addresses, credentials and thresholds to your environment before use.
YAML configuration
name: Forbidden response headers
url: http://127.0.0.1:8080/health
tests:
headers:
absent: [X-Debug, X-Internal-Token]