Skip to content

Commit

Permalink
chore(api-gql): change remoteIpheaders slice to only cf-connection-ip
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed May 2, 2024
1 parent 3a3807f commit fe3e109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api-gql/internal/httpserver/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func New(opts Opts) *Server {
)

r.ForwardedByClientIP = true
r.RemoteIPHeaders = append(r.RemoteIPHeaders, "X-Forwarded-For", "X-Real-IP", "Cf-Connecting-IP")
r.RemoteIPHeaders = append(r.RemoteIPHeaders, "Cf-Connecting-IP")

r.Use(opts.Sessions.Middleware())

Expand Down

0 comments on commit fe3e109

Please sign in to comment.