fix(hasura-storage-js): fix forbidden error

This commit is contained in:
Szilárd Dóró
2023-02-23 18:16:22 +01:00
parent 0f4ea18e42
commit 445d8ef449
9 changed files with 53 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
---
'@nhost-examples/codegen-react-apollo': patch
'@nhost-examples/codegen-react-query': patch
'@nhost-examples/codegen-react-urql': patch
'@nhost-examples/nextjs': patch
'@nhost-examples/react-apollo': patch
'@nhost-examples/react-gqty': patch
'@nhost/react-apollo': patch
'@nhost/react-urql': patch
'@nhost/nextjs': patch
---
chore(deps): bump `@nhost/react` to 2.0.3

View File

@@ -0,0 +1,5 @@
---
'@nhost/nhost-js': patch
---
chore(nhost-js): bump `@nhost/hasura-storage-js` to 2.0.1

View File

@@ -0,0 +1,8 @@
---
'@nhost/dashboard': patch
'@nhost-examples/codegen-react-apollo': patch
'@nhost-examples/nextjs': patch
'@nhost-examples/react-apollo': patch
---
chore(deps): bump `@nhost/react-apollo` to 5.0.4

View File

@@ -0,0 +1,5 @@
---
'@nhost/hasura-storage-js': patch
---
fix(hasura-storage-js): fix forbidden error when uploading

View File

@@ -0,0 +1,6 @@
---
'@nhost/dashboard': patch
'@nhost-examples/nextjs': patch
---
chore(deps): bump `@nhost/nextjs` to 1.13.9

View File

@@ -0,0 +1,8 @@
---
'@nhost-examples/multi-tenant-one-to-many': patch
'@nhost/apollo': patch
'@nhost/react': patch
'@nhost/vue': patch
---
chore(deps): bump `@nhost/nhost-js` version to 2.0.3

View File

@@ -0,0 +1,7 @@
---
'@nhost-examples/vue-apollo': patch
'@nhost-examples/vue-quickstart': patch
'@nhost/react-apollo': patch
---
chore(deps): bump `@nhost/apollo` to 5.0.3

View File

@@ -28,7 +28,7 @@ export class HasuraStorageApi {
return fetchUpload(this.url, formData, {
accessToken: this.accessToken,
adminSecret: this.accessToken,
adminSecret: this.adminSecret,
bucketId: params.bucketId,
fileId: params.id,
name: params.name

View File

@@ -81,7 +81,6 @@ export const fetchUpload = async (
}
// * Browser environment: XMLHttpRequest is available
return new Promise((resolve) => {
console.log('NOOOOOOO')
let xhr = new XMLHttpRequest()
xhr.responseType = 'json'