make sure the request body is correctly passed to the ReverseProxy.

fixes https://github.com/fastenhealth/fasten-onprem/issues/404
This commit is contained in:
Jason Kulatunga 2024-02-02 12:33:35 -08:00
parent 2636235cac
commit 74a18194a5
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -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
}