Ionic serve command, stopping and proxies


I am having two problems with running ionic serve in ionic 2. First, I don’t know how to stop the server started by “ionic serve”. Ctrl-C seems only to quit the command line, leaving the server still running. This results in strange compilation problems and moving port numbers seen from the browser.

The second problem is CORS by chrome. I need to go to a Tomcat at local host. So I set up the proxy as follows.

“name”: “WebContent”,
“app_id”: “”,
“v2”: true,
“typescript”: true,
“proxies”: [
“path”: “/NBMeet/Gesture”,
“proxyUrl”: “http://localhost:8080/NBMeet/Gesture

The request does go to the external server. However, the server returns a 404 for all request sent through the ionic port, both from ionic application and from browser directly, where as calling the tomcat port directly from the browser returns correctly. I need a hint as to what might be happening.

Thank you very much.

I got work around for both issues. To stop server by ionic serve, exit the terminal (I am using cygwin). This is a bit cumbersome but suffer-able. For CORS control, I found a chrome plugin that disables CORS. Works like a charm.