샘플
Detect silent middleware header name casing changes in rack-protection 4.x compared with 3.x.
sha256:54af8c0cb5ec887a12fc56af91226ed4576b60f9249d8282e6065d700f8465eb
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Detect silent middleware header name casing changes in rack-protection 4.x compared with 3.x. HOW
- 패키지
- rack-protection 4.0.0
- 환경
- ruby
- 생성일
- 2026-08-16T16:39:07Z
흔히 이렇게 알고 있다
Security middleware in Rack::Protection sets response security headers with mixed-case names like `X-XSS-Protection` and `X-Content-Type-Options`.
이 샘플의 작성자가 여기서 개발자나 모델이 기대할 법한 내용으로 적어둔 것이다. 아래 계약이 실제로 실행된 것이다.
컨트랙트
- `Rack::Protection::XSSHeader` with `nosniff: true` must emit `x-xss-protection` and `x-content-type-options` keys, not separate mixed-case variants.
- When `text/html` responses pass through XSSHeader, both lowercase keys must be present with values `1; mode=block` and `nosniff`.
파일
- Gemfile
- NOTES.md
- csx.json
- test/contract.rb
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-16 · ed25519:d91480838ac982c9