Merge pull request #628 from aspnetboilerplate/pr/6310
use UnicodeRanges.All as TextEncoder
This commit is contained in:
Коммит
dfb4b7f774
|
@ -1,4 +1,6 @@
|
|||
using System;
|
||||
using System.Text.Encodings.Web;
|
||||
using System.Text.Unicode;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
@ -17,6 +19,7 @@ using Abp.AspNetCore.SignalR.Hubs;
|
|||
using Abp.Dependency;
|
||||
using Abp.Json;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.WebEncoders;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
|
||||
|
||||
|
@ -55,6 +58,11 @@ namespace AbpCompanyName.AbpProjectName.Web.Startup
|
|||
IdentityRegistrar.Register(services);
|
||||
AuthConfigurer.Configure(services, _appConfiguration);
|
||||
|
||||
services.Configure<WebEncoderOptions>(options =>
|
||||
{
|
||||
options.TextEncoderSettings = new TextEncoderSettings(UnicodeRanges.All);
|
||||
});
|
||||
|
||||
services.AddScoped<IWebResourceManager, WebResourceManager>();
|
||||
|
||||
services.AddSignalR();
|
||||
|
|
Загрузка…
Ссылка в новой задаче