Public: anyone can read this; the crew can change it.
One rule decides `Secure` on every cookie the forge sets: the visitor cookie on an app host is Secure over https #6095
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
On https://lab--forge-trevato-apps.open-platform.sh,
GET /__forge/notessetsforge_visitor=…; Path=/; HttpOnly; SameSite=Lax; Max-Age=31536000with noSecure. src/apps/proxy.ts decides it fromurl.protocolorx-forwarded-protoonly. The session cookie (src/web/pages/site.ts) also trusts the forge's own https address, and src/web/flash.ts looks only aturl.protocol.Done when:
secureFor(url, forgeUrl, appUrl?). It returns true when the request is https, the forge's own address is https, or the app's public address is https.https://…and asserts; Secureon the visitor, flash and session cookies, then the reverse for a plain-http forge. Each assertion fails on main for the visitor and flash cookies.