Header Strict-Transport-Security (HSTS) ép trình duyệt dùng HTTPS. Định dạng: max-age=<giây> kèm tùy chọn includeSubDomains và preload, phân tách bởi ;.
Cho giá trị header (phần sau Strict-Transport-Security:). Hãy in 3 dòng:
max-age=<n>
subdomains=<yes|no>
preload=<yes|no>
Nếu thiếu max-age hoặc max-age không hợp lệ, in INVALID.
Input:
max-age=31536000; includeSubDomains
Output:
max-age=31536000
subdomains=yes
preload=no
Một dòng giá trị HSTS.
Các directive phân tách bởi ;, không phân biệt hoa thường ở tên directive.
3 dòng hoặc INVALID.
Ví dụ:
Đầu vào:
max-age=31536000; includeSubDomains
Đầu ra:
max-age=31536000
subdomains=yes
preload=no
Giải thích:
Đang tải editor...