How to use jax-rs api with ionic

Hello everyone. I tried using the API jax-rs with Ionic application, but I have the following error: https: // localhost: 8100 / MTPAY / rest / net Authentication :: ERR_CONNECTION_CLOSED

thank you