BetterCloud / kadmin

Web Based Kafka Consumer and Producer
69 stars 25 forks source link

Frontend not working because of contextPath as "/" #14

Closed pPanda-beta closed 4 years ago

pPanda-beta commented 5 years ago

https://github.com/BetterCloud/kadmin/blob/e3e580d715de1c04d8a6926db21e84add353a1d5/Dockerfile#L16

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