codesamplex

サンプル

Require explicit opt-in to enable session hijacking protection in Rack::Protection 4.x rather than relying on default middleware inclusion.

sha256:211d7395fda74de66490b727f70e99004de2ff33d235445d7c9a625f290745c2

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Require explicit opt-in to enable session hijacking protection in Rack::Protection 4.x rather than relying on default middleware inclusion. HOW
パッケージ
rack-protection 4.2.1
環境
ruby
作成日
2026-08-16T16:38:09Z

よくある思い込み

Initializing Rack::Protection with default options includes session hijacking defense that clears the session when a client user-agent header changes.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート