oakserver / oak

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
https://oakserver.org
MIT License
5.09k stars 231 forks source link

Proxied request secure? #643

Open dvv opened 6 months ago

dvv commented 6 months ago

Hi!

I wonder whether Request's #secure property should honor x-forwarded-proto if the request is proxied? For example, running deno server behind an HTTPS terminator (traefik/nginx) does not allow to set secure cookies (formally, deno receives HTTP request).

TIA