Require auth on upload-token

This commit is contained in:
richard-dds
2019-08-19 16:28:49 -04:00
parent 7d1dfa1d0e
commit 27e0e16707
3 changed files with 1 additions and 3 deletions

View File

@@ -104,7 +104,7 @@ export default {
this.sizeError = false
},
getUploader: async function() {
return fetch('/upload-token')
return fetch('/upload-token', { credentials: "include" })
.then(response => response.json())
.then(({ token }) => buildUploader(token))
},