Skip to content

Commit

Permalink
make sure the request body is correctly passed to the ReverseProxy.
Browse files Browse the repository at this point in the history
fixes #404
  • Loading branch information
AnalogJ committed Feb 2, 2024
1 parent 2636235 commit 74a1819
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/pkg/web/handler/cors_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func CORSProxy(c *gin.Context) {
req.URL.Host = remote.Host
log.Printf(c.Param("proxyPath"))
req.URL.Path = remote.Path
req.Body = c.Request.Body

//TODO: throw an error if the remote.Host is not allowed
}
Expand Down

0 comments on commit 74a1819

Please # to comment.