티스토리 뷰

https://supabase.com/docs/guides/database/postgres/row-level-security

 

Row Level Security | Supabase Docs

Secure your data using Postgres Row Level Security.

supabase.com

 

여기 보면 이런 문구가 있다. 내가 찾던 부분이었다.

 

Enabling Row Level Security#
You can enable RLS for any table using the enable row level security clause:
alter table "table_name" enable row level security;
Once you have enabled RLS, no data will be accessible via the API when using the public anon key, until you create policies.

 

그래서 데이터 조회가 안됐던거구나. 

 

policy를 추가하니 바로 된다.

 

하나 배웠다.

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/07   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
글 보관함