app.UseCors(x =>{ x.SetIsOriginAllowed(s => true) .AllowAnyHeader() .AllowAnyMethod() .AllowCredentials();});