Skip to content
Playground(another site)

bynk.http.cookie_partitioned_insecure

Error A partitioned cookie literal is not secure.

A partitioned cookie is stored separately for each top-level site that embeds your service, and browsers accept the Partitioned attribute only with Secure. A literal that sets partitioned: true with secure: false would be dropped, so it is refused. Remove secure: false (the default is secure: true), or drop partitioned. See also bynk.http.cookie_samesite_none_insecure.

Example

Created("ok").withCookie(Cookie { name: "sid", value: "a", partitioned: true, secure: false }) // ✗
Created("ok").withCookie(Cookie { name: "sid", value: "a", partitioned: true }) // ✓

In the Book

See also

  • The grammar rule it governs: http_handler.
  • Every code in its category, HTTP, on the diagnostic index.
  • bynk explain bynk.http.cookie_partitioned_insecure shows the same from the installed toolchain, without a network.