Removed allow cors

This commit is contained in:
2024-02-25 00:17:18 +01:00
parent 9ca76948df
commit 374d2661c0
2 changed files with 0 additions and 11 deletions

View File

@ -101,9 +101,6 @@ export class DownloadComponent {
method: 'get',
url: this.developmentStore.getBaseUrl() + 'api/v1/speed-test',
responseType: 'arraybuffer',
headers: {
'Access-Control-Allow-Origin': '*', // Allow CORS
}
})
.then(response => {
const end = new Date().getTime(); // End timer
@ -124,9 +121,6 @@ export class DownloadComponent {
method: 'get',
url: this.developmentStore.getBaseUrl() + 'api/v1/download-info?fileId=' + this.fileId,
responseType: 'json',
headers: {
'Access-Control-Allow-Origin': '*', // Allow CORS
}
})
.then(response => {
this.downloadInfo = response.data;
@ -146,9 +140,6 @@ export class DownloadComponent {
method: 'get',
url: this.developmentStore.getBaseUrl() + 'api/v1/download?fileId=' + this.fileId + '&password=' + this.filePassword,
responseType: 'arraybuffer',
headers: {
'Access-Control-Allow-Origin': '*', // Allow CORS
},
onDownloadProgress: (progressEvent) => {
const endTime = new Date().getTime();
const duration = (endTime - startTime) / 1000;