Closed ngxson closed 10 months ago
I suspect this is due to window.location.port is empty if window.location.protocol == 443
window.location.port
window.location.protocol == 443
See file: https://github.com/cheshire-cat-ai/admin-vue/blob/main/src/api.ts#L12
export const apiClient = new CatClient({ baseUrl: window.location.hostname, port: parseInt((DEV ? '1865' : window.location.port) ?? '80'), secure: window.location.protocol === 'https:', timeout: 15000, ws: {
This is in fact a misuse of window.location.port, see the example below to understand:
I suspect this is due to
window.location.port
is empty ifwindow.location.protocol == 443
See file: https://github.com/cheshire-cat-ai/admin-vue/blob/main/src/api.ts#L12
This is in fact a misuse of
window.location.port
, see the example below to understand: