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.
1 parent 7cf585f commit 74d4c0f4228bb50a7751e667a491c707c9f3e434
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored 9 hours ago
Showing 4 changed files
View
webclient/src/api/client.js
View
webclient/src/components/layout/AppShell.vue
View
webclient/src/features/auth/pages/LoginPage.vue
View
webclient/src/stores/auth.js