Vapor Documentation

Enumeration HTTPCookies.​Same​Site​Policy

public enum SameSitePolicy: String  

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).

%481 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"

Strict mode.

lax

case lax = "Lax"

Relaxed mode.

none

case none = "None"