Vapor Documentation Beta

Enumeration HTTPCookies.​Same​Site​Policy

public enum SameSitePolicy

A cookie which can only be sent in requests originating from the same origin as the target domain.

This restriction mitigates attacks such as cross-site request forgery (XSRF).

%3 HTTPCookies.SameSitePolicy HTTPCookies.SameSitePolicy String String HTTPCookies.SameSitePolicy->String

Member Of

HTTPCookies

A collection of HTTPCookies.

Conforms To

String

Enumeration Cases

strict

case strict

Strict mode.

lax

case lax

Relaxed mode.

none

case none