in src/durableClient/getClient.ts [64:84]
function correctUrls(obj: { [key: string]: string }): { [key: string]: string } {
const returnValue = cloneDeep(obj);
const keys = Object.getOwnPropertyNames(obj);
keys.forEach((key) => {
const value = obj[key];
if (
isURL(value, {
protocols: ["http", "https"],
require_tld: false,
require_protocol: true,
})
) {
const valueAsUrl = new url.URL(value);
returnValue[key] = value.replace(valueAsUrl.origin, Constants.DefaultLocalOrigin);
}
});
return returnValue;
}