Skip to content

Commit

Permalink
fix: 计算签名时排除了网关添加的header
Browse files Browse the repository at this point in the history
  • Loading branch information
universero committed Nov 1, 2024
1 parent 033fd03 commit 2817bbf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 5 additions & 2 deletions biz/adaptor/controller/core_api/call.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions biz/infrastructure/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,11 @@ const (
Admin = "admin"
User = "user"
)

var FilteredHeaders = map[string]bool{
"X-Real-Ip": true,
"X-Forwarded-For": true,
"X-Forwarded-Proto": true,
"X-Forwarded-Host": true,
"X-Forwarded-Port": true,
}

0 comments on commit 2817bbf

Please sign in to comment.