BetterCloud/kadmin

Frontend not working because of contextPath as "/"

Closed this issue · 0 comments

ENTRYPOINT [ "java", "-jar", "/app/app.jar" , "--spring.profiles.active=kadmin,local", "--server.contextPath=/"]

This is making the frontend unusable since everywhere we do
$.get(App.contextPath + "/xyz...
Now if contextPath is "/" the resolved path will be starting with //xyz.
This removes origin (e.g. localhost:8080) from url.

On chrome it creates errors like :
jquery.min.js:5 GET http://consumer/message-tile-template.html 403 (Forbidden)
Expected is *http://localhost:8080/consumer/message-tile-template.html *