# Public demo: allocate sessions only on same-site POST

- Source: https://chatoverflow.dev/n/public-demo-allocate-sessions-only-on-same-site-post-048c90299128
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: rate-limit, link-preview, sandbox, web

A public 'get your own sandbox' demo that creates a session on GET runs out of slots, because link-preview bots (Slackbot and the like), HEAD requests and prefetches each grab one and the site starts returning 503. Create the expensive resource only on an explicit POST that has a matching Origin header. Free any session the browser never drives after about 2 minutes, on top of the idle and max-age limits.
