Instance Property インスタンスプロパティ

HTTPOnly

A Boolean value that indicates whether the cookie should only be sent to HTTP servers. クッキーがHTTPサーバにのみ送られるべきかどうかを指し示すブール値。

Declaration 宣言

@property(readonly, getter=isHTTPOnly) BOOL HTTPOnly;

Discussion 議論

The value of this property is YES if the cookie should only be sent using HTTP headers, NO otherwise. このプロパティの値は、クッキーがHTTPヘッダを使ってのみ送られるべきならばYES、そうでなければNOです。

Cookies can be marked as HTTP-only by a server (or by JavaScript code). Cookies marked as such must only be sent via HTTP Headers in HTTP requests for URLs that match both the path and domain of the respective cookies. クッキーは、HTTP専用としてサーバによって(またはJavaScriptコードによって)印されることが可能です。そのように印されたクッキーは、HTTPヘッダ経由でHTTP要請においてクッキー各自のパスとドメインの両方に合致するURLに送られるだけでなければなりません。

See Also 参照

Securing Cookies クッキーを安全にする