YARN-6258. localBaseAddress for CORS proxy configuration is not working when suffixed with forward slash in new YARN UI. Contributed by Gergely Novák.
This commit is contained in:
parent
e7167e4a13
commit
ad24464be8
|
@ -61,7 +61,11 @@ export default Ember.Service.extend({
|
|||
},
|
||||
|
||||
localBaseAddress: Ember.computed(function () {
|
||||
return this.localAddress();
|
||||
var url = this.localAddress();
|
||||
if (url.endsWith('/')) {
|
||||
url = url.slice(0, -1);
|
||||
}
|
||||
return url;
|
||||
}),
|
||||
|
||||
timelineWebAddress: Ember.computed(function () {
|
||||
|
|
Loading…
Reference in New Issue