Skip to content

Commit 5576b37

Browse files
fix: storage ui failing to authenticate uploads supabase#39827 Co-authored-by: Ali Waseem <[email protected]>
1 parent 3eb8507 commit 5576b37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/studio/state/storage-explorer.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,6 +1198,9 @@ function createStorageExplorerState({
11981198
try {
11991199
const data = await getTemporaryAPIKey({ projectRef: state.projectRef })
12001200
req.setHeader('apikey', data.api_key)
1201+
if (!IS_PLATFORM) {
1202+
req.setHeader('Authorization', `Bearer ${data.api_key}`)
1203+
}
12011204
} catch (error) {
12021205
throw error
12031206
}

0 commit comments

Comments
 (0)