Monday, 21 July 2025

Supabase authenticaion keys

 

go to project setings
to post or create getting error

To fix this:

  1. Go to your Supabase dashboard.
  2. Open your project, then go to the "Table Editor" and select the "students" table.
  3. Click on "RLS" or "Policies".
  4. Add a policy that allows inserts. For development, you can use:
    • Policy name: Allow insert for all
    • Action: INSERT
    • Expression: true (or use the policy builder to allow all inserts)

After saving, try creating a student again. For production, you should restrict this policy to authenticated users or specific roles. Let me know if you want a secure example!

message: 'new row violates row-level security policy for table "students"'
create student getting above error



No comments:

Post a Comment

css of bayt.com