bynk.http.cookie_host_prefix
Error A __Host- cookie literal is not secure, sets a domain, or uses a path other than /.
A cookie named __Host-… asks the browser to keep it only if it is Secure, has no Domain and has Path=/. That ties it to this exact host, so a sibling subdomain or an insecure page cannot set or overwrite it. A browser drops one that breaks any of the three, so a literal that does is refused. Remove secure: false, the domain and any path other than "/", or rename the cookie.
Example
Created("ok").withCookie(Cookie { name: "__Host-sid", value: "a", path: "/app" }) // ✗ must be `/`
Created("ok").withCookie(Cookie { name: "__Host-sid", value: "a" }) // ✓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_host_prefixshows the same from the installed toolchain, without a network.