Skip to content

Commit 1c22b09

Browse files
committed
feat: use token endpoint without .json suffix
1 parent 3c11e16 commit 1c22b09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

resources/assets/components/Attachment.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export default
234234
// Check if profile uses secure download
235235
if (profile && profile.secureDownload) {
236236
// Token-based secure download
237-
client.post(this.settings.url + 'attachment/download/get-file-token.json', { file: attachment.id })
237+
client.post(this.settings.url + 'attachment/download/get-file-token', { file: attachment.id })
238238
.then((response) => {
239239
const token = response.data.token
240240
return client.get(this.settings.url + 'attachment/download/file/' + token, {responseType: 'arraybuffer'})

0 commit comments

Comments
 (0)