VibeDict

🗄️Blocked by security rules (RLS), so it won't save

What you'll see
new row violates row-level security policy for table "posts"

The database's row security rules (especially in Supabase) didn't allow this save or edit.

🤔 Why does it happen?

  • RLS was turned on for the table, but no rules (policies) for "who can write" were made
  • It tried to save without login info

🔧 Try this

  1. Add the rules you need in Supabase → the table → Policies
  2. Avoid turning RLS off, since that's risky

🤖 Ask your AI like this

I get 'violates row-level security policy' when saving to Supabase. Please don't turn RLS off; create policies so logged-in people can only write and read their own data. [Paste the full error here]

Replace the [ ] parts with your own situation, and paste the error with a few extra lines before and after it.

Related terms

Other errors in this group