Login than not receive set-cookie header
- Lingua principale
- TypeScript
- Stelle
- 25.7k
- Fork
- 7.9k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### Issue type
**I'm submitting a ...** (check one with "x")
* [ ] bug report
* [ ] feature request
* [X] question about the decisions made in the repository
### Issue description
**Current behavior:**
I bought the netcore+iot bundle, to step up a little my development. With this version and the netcore backend, it works as expected, but now I am trying to use other backend developed by me.
When I try to do login /auth/login with postman, it logged in and reply with the authentication token in set-cookie header.
When I try to do login with browser (ngx-admin) and I cannot find any cookie.
In AuthInterceptor I use console.log to see in browser console the HttpResponse:
```
HttpResponse
body: Object
issuperadmin: true
Object Prototype
headers: HttpHeaders
headers: Map {"content-length" => ["21"], "content-type" => ["application/json; charset=utf-8"]} (2)
lazyInit: null
lazyUpdate: null
normalizedNames: Map {"content-length" => "content-length", "content-type" => "content-type"} (2)
HttpHeaders Prototype
ok: true
status: 201
statusText: "Created"
type: 4
url: "https://xxxxxx.com:1111/auth/login"
HttpResponse Prototype
```
My AuthInterceptor is the following:
```
intercept(req: HttpRequest, next: HttpHandler): Observable> {
return next.handle(req)
.pipe(
filter(event => event instanceof HttpResponse),
map((event: any) => {
console.log('event--->>>', event);
return event;
}));
}
```
**Expected behavior:**
The HttpResponse should have in HttpHeader the "Set-Cookie" header.
I need to know if it any configuration that I should use in ngx-admin to receive this header element or other solution.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.