0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

目次

はじめに

今回は、Supabaseのよくわからないエラーで引っかかったため、共有する

確認事項

RLSやポリシー、anonkeyの設定は正しいか確認する

原因

  • SQL Editorで直接create tableした場合、RLSポリシーとは別にPostgreSQLレベルのGRANT権限が自動付与されない

解決方法

  • 下記をSupabaseのSQL Editerで実行する
grant select on public.users to anon, authenticated;
  • 今後作成するテーブルすべてに自動でGRANTを適用したい場合は下記を実行する
alter default privileges in schema public
grant select on tables to anon, authenticated;
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?