โœˆ๏ธ Go Up

Cookie Transmission Scenario Analysis

Go to Nav

Cookie Transmission Scenario Analysis

This document analyzes cookie transmission scenarios and organizes whether cookies are transmitted based on various SameSite settings and domain attributes. This analysis is based on requests between https://api.hello.dev and https://hello.dev.

Prerequisites

All cookies have the following common options:

  • Secure=true: Cookies are transmitted only over HTTPS connections

The browser transmits all SameSite setting cookies only for same-site requests (where origin and target share the same registered domain hello.dev), so there's no blocking due to SameSite here. When a cookie's Domain attribute is specified, the cookie is transmitted to that domain and all its subdomains. In the tables below, โœ… indicates cookie transmission, and ๐Ÿšซ indicates no transmission.

https://api.hello.dev โ†’ https://api.hello.dev

Domain SameSite Form GET Form POST Fetch GET Fetch POST
api.hello.dev Strict โœ… โœ… โœ…ยน โœ…ยน
api.hello.dev Lax โœ… โœ… โœ…ยน โœ…ยน
api.hello.dev None โœ… โœ… โœ…ยน โœ…ยน
.hello.dev Strict โœ… โœ… โœ…ยน โœ…ยน
.hello.dev Lax โœ… โœ… โœ…ยน โœ…ยน
.hello.dev None โœ… โœ… โœ…ยน โœ…ยน

https://api.hello.dev โ†’ https://*.hello.dev

Domain SameSite Form GET Form POST Fetch GET Fetch POST
api.hello.dev Strict ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ
api.hello.dev Lax ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ
api.hello.dev None ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ
.hello.dev Strict โœ… โœ… โœ…ยน โœ…ยน
.hello.dev Lax โœ… โœ… โœ…ยน โœ…ยน
.hello.dev None โœ… โœ… โœ…ยน โœ…ยน

https://api.hello.dev โ†’ https://hello.dev

Domain SameSite Form GET Form POST Fetch GET Fetch POST
api.hello.dev Strict ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ
api.hello.dev Lax ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ
api.hello.dev None ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ
.hello.dev Strict โœ… โœ… โœ…ยน โœ…ยน
.hello.dev Lax โœ… โœ… โœ…ยน โœ…ยน
.hello.dev None โœ… โœ… โœ…ยน โœ…ยน

https://hello.dev โ†’ https://api.hello.dev

Domain SameSite Form GET Form POST Fetch GET Fetch POST
hello.dev Strict ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ
hello.dev Lax ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ
hello.dev None ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ
.hello.dev Strict โœ… โœ… โœ…ยน โœ…ยน
.hello.dev Lax โœ… โœ… โœ…ยน โœ…ยน
.hello.dev None โœ… โœ… โœ…ยน โœ…ยน

https://hello.dev โ†’ https://*.hello.dev

Domain SameSite Form GET Form POST Fetch GET Fetch POST
hello.dev Strict ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ
hello.dev Lax ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ
hello.dev None ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ ๐Ÿšซ
.hello.dev Strict โœ… โœ… โœ…ยน โœ…ยน
.hello.dev Lax โœ… โœ… โœ…ยน โœ…ยน
.hello.dev None โœ… โœ… โœ…ยน โœ…ยน

Footnotes

ยน With credentials (Fetch API requires credentials: include option)

Note: When the domain attribute is specified, cookies are transmitted to the specified domain and all its subdomains.