Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

丁松杰 / Pole

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 6c72dd71 authored 5 years ago by dingsongjie's avatar dingsongjie
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

解决 react grpc-web 的问题

parent e57c03a2 master … v1.0.0
Hide whitespace changes
Inline Side-by-side
Showing with 6 additions and 6 deletions
  • samples/apis/Backet.Api/Program.cs
samples/apis/Backet.Api/Program.cs
View file @ 6c72dd71
...@@ -39,14 +39,14 @@ namespace Backet.Api ...@@ -39,14 +39,14 @@ namespace Backet.Api
webBuilder.UseStartup<Startup>(); webBuilder.UseStartup<Startup>();
webBuilder.UseKestrel(option => webBuilder.UseKestrel(option =>
{ {
//option.ListenAnyIP(81, config => option.ListenAnyIP(81, config =>
//{
// config.Protocols = Microsoft.AspNetCore.Server.Kestrel.Core.HttpProtocols.Http1;
//});
option.ListenAnyIP(82, config =>
{ {
config.Protocols = Microsoft.AspNetCore.Server.Kestrel.Core.HttpProtocols.Http2; 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();
}); });
}); });
}); });
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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