fix: add both apikey and Authorization headers for storage upload
This commit is contained in:
@@ -39,7 +39,8 @@ export async function uploadProductImage(
|
|||||||
{
|
{
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
headers: {
|
headers: {
|
||||||
...svcHeaders(supabaseKey),
|
"apikey": supabaseKey,
|
||||||
|
"Authorization": `Bearer ${supabaseKey}`,
|
||||||
"Content-Type": `image/${ext}`,
|
"Content-Type": `image/${ext}`,
|
||||||
"x-upsert": "true"
|
"x-upsert": "true"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user