Y
Y
Yaroslav Urbanevich2016-03-02 15:16:12
Angular
Yaroslav Urbanevich, 2016-03-02 15:16:12

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

1 answer(s)
A
Alexander Taratin, 2014-12-05
@cubooks

width: calc(100% - 65px);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question