S
Supabase2mo ago
raju

API Key shows in Request Headers

Please see the image, our API Key is exposed via network calls Request Headers. I'm using Supabase Library only. import { createClient } from '@supabase/supabase-js'; const supabaseUrl = import.meta.env.VITE_SUPABASE_URL; const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY; export const supabase = createClient(supabaseUrl, supabaseAnonKey); Please Help
No description
4 Replies
garyaustin
garyaustin2mo ago
What are you asking for help on? The apikey and user access_token are always exposed in browser based calls to the dev console. They are encrypted in transit. This is why service role should never be used on a browser.
patito1009
patito10092mo ago
As @garyaustin said, there's no problem on the anon key being exposed as long as you are using RLS policies. It's stated in Supabase Dashboard under Project Settings > API Keys > Legacy API Keys.
patito1009
patito10092mo ago
No description
raju
rajuOP2mo ago
Oh, Thanks for answer @garyaustin & @patito1009

Did you find this page helpful?