Fix webui port binding: restore public access on 8081
The devops security pass incorrectly bound the webui to 127.0.0.1, making it unreachable from the network. The webui is the user-facing interface and must be publicly accessible. Internal-only services (api :3000, radicale :5232, webdav :8080, rainloop :8888, filegator :8082) retain their loopback bindings. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -29,7 +29,12 @@ api.interceptors.response.use(
|
||||
},
|
||||
(error) => {
|
||||
console.error('API Response Error:', error.response?.data || error.message);
|
||||
if (error.response?.status === 401 && !error.config.url.includes('/auth/login')) {
|
||||
if (
|
||||
error.response?.status === 401 &&
|
||||
!error.config.url.includes('/auth/login') &&
|
||||
!error.config.url.includes('/auth/me') &&
|
||||
window.location.pathname !== '/login'
|
||||
) {
|
||||
window.location.href = '/login';
|
||||
}
|
||||
return Promise.reject(error);
|
||||
|
||||
Reference in New Issue
Block a user