© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
2 replies
Allen Casili (Cvsu Trece Campus)

Supabase SSR + Middleware + HttpOnly Cookies?

Hello

I’m currently working on my thesis project, it’s a patient record management system with appointment scheduling (using Next.js + Supabase).

I ran into an issue: the Supabase cookies aren’t set as HttpOnly, which makes me worried about security.

My question is:

Is there a way to still use Supabase SSR with middleware and have the cookies set as HttpOnly?

Or am I missing something about how Supabase auth/session handling works in this setup?

I’m still pretty new to web dev, so any clarification, suggestions, or best practices would really help me a lot.

Thanks!

also

I just want to ask: how can I properly justify that using a cookie without the HttpOnly flag can still be considered secure, especially when dealing with sensitive data such as patient records?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

httponly cookies
SupabaseSSupabase / help-and-questions
4y ago
Roast my demo app with Next.js and @supabase/ssr using httpOnly cookies
SupabaseSSupabase / help-and-questions
6mo ago
getClaims in supabase ssr
SupabaseSSupabase / help-and-questions
4mo ago
gotrue locally + @supabase/ssr
SupabaseSSupabase / help-and-questions
3y ago