Commit 6c72dd71 by dingsongjie

解决 react grpc-web 的问题

parent e57c03a2
Showing with 6 additions and 6 deletions
......@@ -39,14 +39,14 @@ namespace Backet.Api
webBuilder.UseStartup<Startup>();
webBuilder.UseKestrel(option =>
{
//option.ListenAnyIP(81, config =>
//{
// config.Protocols = Microsoft.AspNetCore.Server.Kestrel.Core.HttpProtocols.Http1;
//});
option.ListenAnyIP(82, config =>
option.ListenAnyIP(81, config =>
{
config.Protocols = Microsoft.AspNetCore.Server.Kestrel.Core.HttpProtocols.Http2;
config.UseHttps();
});
option.ListenAnyIP(82, config =>
{
config.Protocols = Microsoft.AspNetCore.Server.Kestrel.Core.HttpProtocols.Http1AndHttp2;
//config.UseHttps();
});
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment