This static page runs on the storefront origin. It calls
POST /probe/session and then GET /probe/session on the API
origin with credentials: "include". If the API is on the same site
(e.g. api.example.com under example.com), the cookie set by
the POST should be sent back with the GET, so cookieReceived becomes
true. Cookie values are never shown.
| document.location.origin | |
|---|---|
| navigator.userAgent | |
| POST /probe/session | |
| GET /probe/session |