Hi there,
I built this form on the screenshot, when I click into submit button, it makes a request to the .NET api I have, and uploads the file user selected to the backend
const formData = new FormData();
formData.append('file', this.file, this.file.name);
this.http.post("http://localhost:7071/api/test" , formData).subscribe(res => {
console.log(res);
});
And it works, I can get the file on my dotnet api without any problem.
My question is that, as you can see from the screenshot, it shows CORS error for the request. Can this be a problem? Does this error means even though it works right now on my local pc, it won't on production?