I\'m trying to send files to my server with a post request, but when it sends it causes the error:
Request header field Content-Type is not allowed by
In Asp Net Core, to quickly get it working for development; in Startup.cs, Configure method add
Startup.cs
Configure method
app.UseCors(options => options.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader());