|
Route all auth/login requests through proxy.php for cross-domain SPA
- Replace direct /auth/login with /proxy.php?path=/auth/login so the request reaches the PHP backend through proxy.php when the SPA runs on a different domain (panel.smarthome.arp vs 192.168.1.101). - Pass full window.location.href as return_to so the OAuth callback redirects back to the panel domain, not the bare server IP. |
|---|
|
|
| webclient/src/api/client.js |
|---|
| webclient/src/components/layout/AppShell.vue |
|---|
| webclient/src/features/auth/pages/LoginPage.vue |
|---|
| webclient/src/stores/auth.js |
|---|