|
@@ -54,6 +54,7 @@ namespace HiTeachCE
|
|
|
x.MultipartBodyLengthLimit = long.MaxValue; // In case of multipart
|
|
|
x.MultipartHeadersLengthLimit = int.MaxValue;
|
|
|
});
|
|
|
+
|
|
|
services.AddControllersWithViews();
|
|
|
//跨域设置
|
|
|
services.AddCors();
|
|
@@ -84,12 +85,7 @@ namespace HiTeachCE
|
|
|
// .AllowCredentials();
|
|
|
});
|
|
|
});
|
|
|
- services.Configure<FormOptions>(x =>
|
|
|
- {
|
|
|
- x.ValueLengthLimit = int.MaxValue;
|
|
|
- x.MultipartBodyLengthLimit = long.MaxValue; // In case of multipart
|
|
|
- x.MultipartHeadersLengthLimit = int.MaxValue;
|
|
|
- });
|
|
|
+
|
|
|
services.MQTTConnection();
|
|
|
// Add framework services.
|
|
|
services.AddMvc(options =>
|