From 74a18194a5c61bc60cfb8d879d3e07ca841a309a Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Fri, 2 Feb 2024 12:33:35 -0800 Subject: [PATCH] make sure the request body is correctly passed to the ReverseProxy. fixes https://github.com/fastenhealth/fasten-onprem/issues/404 --- backend/pkg/web/handler/cors_proxy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/pkg/web/handler/cors_proxy.go b/backend/pkg/web/handler/cors_proxy.go index 2eee5e12..aea0297b 100644 --- a/backend/pkg/web/handler/cors_proxy.go +++ b/backend/pkg/web/handler/cors_proxy.go @@ -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 }