Answer the question
In order to leave comments, you need to log in
How to make Yii2+Angular authorization on different subdomains?
Good afternoon.
There are two applications in Angula. one is located at example.com , the other at sub.example.com .
Both applications communicate with api.example.com .
When I authorize on the example.com site , a request is made to api.example.com , and authorization is already taking place there using yii\filters\auth\QueryParamAuth. The token is stored in sessionStorage on example.com and then used to validate all requests.
Question : how to make sure that when going to sub.example.com - the user is authorized?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question