Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix #39827 (#39829)

Ben Isenstein5576b37a6499
diff --git a/apps/studio/state/storage-explorer.tsx b/apps/studio/state/storage-explorer.tsx
index fbeb9a547be..751080cd58c 100644
--- a/apps/studio/state/storage-explorer.tsx
+++ b/apps/studio/state/storage-explorer.tsx
@@ -1198,6 +1198,9 @@ function createStorageExplorerState({
try {
const data = await getTemporaryAPIKey({ projectRef: state.projectRef })
req.setHeader('apikey', data.api_key)
+ if (!IS_PLATFORM) {
+ req.setHeader('Authorization', `Bearer ${data.api_key}`)
+ }
} catch (error) {
throw error
}