Ionic proxy is adding extra "/" at the end of proxyUrl

Why is proxyUrl adds a “/” at the end of the url to complete the endpoint. This is causing me grief in my Spring boot app. I dont want Ionic proxy to add that slash. How can I configure that.

For example here is my : ionic.config.json

“proxies”: [
“path”: “/login”,
“proxyUrl”: “http://localhost:8080/auth/login

The proxy is submitting forwarding the request to

I can probably adjust my WebSurityConfig in Spring but why is that extra “/” in the end. A valid endpoint on the server is rejected because of the endpoint is incorrect.

“timestamp”: 1475604812393,
“status”: 403,
“error”: “Forbidden”,
“message”: “Access Denied”,
“path”: “/auth/login/”

The Ionic proxy code needs to be fixed.


I have the same problem with the last version of ionic

What is your ionic info output?

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.9.2
ionic (Ionic CLI) : 3.9.2

global packages:

Cordova CLI : 7.0.1

local packages:

@ionic/app-scripts : 2.1.4
Cordova Platforms  : android 6.2.3 ios 4.4.0
Ionic Framework    : ionic-angular 3.6.1


ios-deploy : 1.9.2
Node       : v6.11.0
npm        : 3.10.10
OS         : macOS Sierra
Xcode      : Xcode 8.3.3 Build version 8E3004b

i have 403 on evry proxy redirection with spring at backend

“path”: “/auth/login”,
“proxyUrl”: “http://myserver:8080/auth/login

i have

{_body: “{“timestamp”:1505158021912,“status”:404,“error”:“N…ge”:“No message available”,“path”:”/auth/login/"}", status: 404, ok: false, statusText: “Not Found”, headers: Headers, …}

and with another page i go in spring
@ExceptionHandler({ AccessDeniedException.class })

with 403 error

What is the code that calls this?

this sounds unrelated