Can not edit/update DHIS2 objects when accessed through reverse proxy

Happy new year folks.

We are experiencing edit/update issues of DHIS2 objects and TEI via the reverse proxy server. when a user tries to edit any object or update profiles of the TEI, the browser throws the following PUT and FETCH errors PUT http://ovcmis.rw/api/users/fnLD6SDGZUz net::ERR_CONNECTION_RESET and Server connection error: TypeError: Failed to fetch.

when we examined this further we found out that when the system is accessed locally, it works perfectly well but when accessed through its public domain name, it throws the errors mentioned above and timesout.

We are using Nginx as the reverse proxy server with the default configuration settings recommended in the guide with unsecure http.

DHIS2 version is 2.35.1. Will appreciate if someone helps me to figure out how to resolve this.

Absolom