@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