Hello,
I’m trying to set up a configuration for an instance in the MetaData sync app, but It throws an error “Network error, check if the server is up and CORS is enabled.”
I have internet access on my laptop, plus I have added the source server URL as a CORS whitelist on the remote URL.
Note: The remote server has no SSL. while the source server has a SSL .
As you said, in MDSync it is necessary that you introduce the sender domain in the receiver CORS whitelist in the DHIS2 Access list in the server settings, and in certain situations, multiple entries may be needed. e.g. if your origin domain is http://mydomain.com/myfolder you may need to have 2 separate entries: http://mydomain.com http://mydomain.com/myfolder
Not sure if that could help. Apart from that, there may be issues related to the physical network connection or devices in between the 2 instances that are difficult to debug without a direct access. In any case, everything about MDSync configuration (including the text documentation) you can find it here: https://eyeseetea.github.io/metadata-synchronization-blessed/metadatasync/
login into the remote server, open the settings app, and add the domain to CORS Whitelist in >Settings>Access>CORS Whitelist. it will work fine Inshallah.