Removed allow cors
This commit is contained in:
@ -85,7 +85,6 @@ export class UploadComponent {
|
||||
const config = {
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
'Access-Control-Allow-Origin': '*', // Allow CORS
|
||||
},
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => {
|
||||
if (progressEvent.total) {
|
||||
@ -156,7 +155,6 @@ export class UploadComponent {
|
||||
data: uint8View,
|
||||
headers: {
|
||||
'Content-Type': 'application/octet-stream',
|
||||
'Access-Control-Allow-Origin': '*', // Allow CORS
|
||||
},
|
||||
onUploadProgress: function(progressEvent) {
|
||||
// Optional: handle progress events for feedback
|
||||
|
Reference in New Issue
Block a user