mocks-server / main

Node.js mock server running live, interactive mocks in place of real APIs
https://www.mocks-server.org
Apache License 2.0
281 stars 14 forks source link

Plugin-admin-api - Impossibility to change the base server url (localhost) : when app deploy in production, requests fail #495

Open squirrion opened 1 month ago

squirrion commented 1 month ago

Describe the bug When the app is deployed in production, the plugin admin-api start on localhost or IP local. When we try to execute a request via the api admin (for example : http://localhost:23315/api/about, then we have a connexion failed because it doesn't use the host or IP reachable)

To Reproduce

Expected behavior 2 possibility :

Logs No logs, in the network activity of the navigator (devTools), we see the request url http://localhost:23315/api/about but fail because not reachable

Operating system, Node.js an npm versions, or browser version (please complete the following information):