fix(hasura-storage-js): fix forbidden error
This commit is contained in:
13
.changeset/funny-laws-promise.md
Normal file
13
.changeset/funny-laws-promise.md
Normal 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
|
||||
5
.changeset/heavy-toes-sort.md
Normal file
5
.changeset/heavy-toes-sort.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@nhost/nhost-js': patch
|
||||
---
|
||||
|
||||
chore(nhost-js): bump `@nhost/hasura-storage-js` to 2.0.1
|
||||
8
.changeset/itchy-dots-smash.md
Normal file
8
.changeset/itchy-dots-smash.md
Normal 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
|
||||
5
.changeset/kind-ducks-hang.md
Normal file
5
.changeset/kind-ducks-hang.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@nhost/hasura-storage-js': patch
|
||||
---
|
||||
|
||||
fix(hasura-storage-js): fix forbidden error when uploading
|
||||
6
.changeset/many-pumas-fetch.md
Normal file
6
.changeset/many-pumas-fetch.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'@nhost/dashboard': patch
|
||||
'@nhost-examples/nextjs': patch
|
||||
---
|
||||
|
||||
chore(deps): bump `@nhost/nextjs` to 1.13.9
|
||||
8
.changeset/nervous-pants-join.md
Normal file
8
.changeset/nervous-pants-join.md
Normal 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
|
||||
7
.changeset/nine-bobcats-guess.md
Normal file
7
.changeset/nine-bobcats-guess.md
Normal 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
|
||||
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user