rls is bypassed when connecting to supabase using the connection string with postgres library
hi,
I have enabled RLS for a table, so I expect all requests to this table should be blocked, in sql editor I see this as blocked when role is selected as anon.
However, when connecting to supabase from my next.js app , with postgres library using the connection string, even adding param as role = anon, RLS is bypassed.
Even I have enabled RLS for superusers, but the table is accessible.
Can someone give insight, what I might be doing wrong?
Thanks
I have enabled RLS for a table, so I expect all requests to this table should be blocked, in sql editor I see this as blocked when role is selected as anon.
However, when connecting to supabase from my next.js app , with postgres library using the connection string, even adding param as role = anon, RLS is bypassed.
Even I have enabled RLS for superusers, but the table is accessible.
Can someone give insight, what I might be doing wrong?
Thanks