0

is there a way in angular to automatically log-in user when he lands in subdomain. The user is already logged in maindomain and his token,user-info is set in localstorage but when he is redirected to subdomain i need access of maindomain in subdomain

say example.com is maindomain and abc.example.com is subdomain

Estus Flask
  • 206,104
  • 70
  • 425
  • 565
Aranganathan
  • 731
  • 2
  • 9
  • 23
  • Such questions are almost never framework-specific. This is general JS question that was answered a number of times. – Estus Flask Dec 19 '17 at 08:53
  • Possible duplicate of [use localStorage across subdomains](https://stackoverflow.com/questions/4026479/use-localstorage-across-subdomains) – Estus Flask Dec 19 '17 at 08:53

0 Answers0