0
I have 2 differents applications in ember.js both connect to the same api: "host1:3000/appA" and "host2:3001/appB". I use nginx so that the client can access appA and appB through a single domain, that is: "mydomain.com/appA" and "mydomain.com/appB". Everything is correct but the applications are sharing "store" ember objects. So if I login into appA, I also login into appB. How can I prevent session sharing between applications?.
I used this code from nginx, but does't work:
location /appA {
proxy_pass http://host1:3000;
proxy_cookie_path /appA /appA;
}
location /appB {
proxy_pass http://host2:3001;
proxy_cookie_path /appB /appB;
}
Aucun commentaire:
Enregistrer un commentaire