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:
parent
2636235cac
commit
74a18194a5
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue