Hello MOSIP Community,
I’m encountering an issue while trying to run the Pre-registration UI locally with a proxy configuration, and I’m hoping someone can help me figure out what’s going wrong.
Problem Description
My Pre-registration UI seems unable to connect to the backend services. I am getting errors) when trying to access the Pre-registration APIs through my proxy setup.
My Proxy Configuration (proxy.conf.json)
Here is the proxy.conf.json file I am currently using:
JSON
{
"/proxyapi": {
"target": "https://prereg.collab.mosip.net/",
"secure": false,
"changeOrigin": true,
"pathRewrite": {
"^/proxyapi": ""
},
"logLevel": "debug"
}
}
It is sending data to collab but error is captcha is not
What I Have Tried
I have tried setting the "target" to several different URLs, but none of them have successfully allowed the UI to communicate with the backend:
-
"``https://prereg.dev1.mosip.net/``"(not valid) -
"``https://api-internal.collab.mosip.net/``"(login doesn’t even loads_ -
"https://prereg.collab.mosip.net/"
Request for Help
-
Is there a specific, working URL that I should be using as the
"target"for the MOSIP Pre-registration backend when running the UI locally? -
Does my
proxy.conf.jsonlook correct for proxying all requests starting with/proxyapito the root of the target backend? -
Are there any other configuration steps (e.g., specific headers, host settings, or backend environment variables) that I might be missing to successfully connect to a MOSIP environment (like dev1 or collab)?

