andystevenson
Explore posts from serversconninfo doesn't check for x-forwarded-for?
I am on a host with a caddyserver reverse-proxy and want to make sure the client is coming from a whitelist set of IP addresses. So I set up the server using the ipRestriction middleware as per the docs. I am running it using bun. However the reverse proxy uses the x-forwarded-for header. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For I was wondering should conninfo or the ipRestriction middleware check for it?
3 replies
Does the context object get shared across all sessions?
I am using hono-sessions. I have several different users. Am I correct in assuming that each invocation in hono shares 1 context object ... so if I store something directly using context.set(x, y) it will be shared by every route?
2 replies
KPCKevin Powell - Community
•Created by andystevenson on 7/30/2023 in #front-end
Tricky nth-child
I have a long list of elements.
Using nth-child for example I want to select elements 2-4 6-8 10-12 ... how would i do it?
6 replies