Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49185

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

$
0
0

@vchauhan wrote:

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
http://localhost:8080/auth/login/

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.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49185

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>