Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Instance Property

sameSite

A cookie which can only be sent in requests originating from the same origin as the target domain.
var sameSite: SameSitePolicy?

Discussion

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