I'm making a website with angular and I use Flask as my API. Everything was ok until now, but I want to use session with flask, so I have to get the session cookie and send it back.
The problem is: Cookies are not saved on my browsers (Firefox/Google Chrome).
When I try with another tool like Insomnia/Postman, there is no problem! The cookie is saved and everything work when the cookie is sent back!
I have read a lot of same situation (I mean, with the domain parameter which need two dots), but even when I try:
angular client -> dev.localhost.local
Flask API -> api.localhost.local
domain -> .localhost.local
the browser get the set-cookie options
no cookie saved
no session saved
Browser just doesn't save my session...
I tried a lot of configuration:
Domain : .localhost.local
, localhost.local
,dev.localhost.local
,.dev.localhost.local
I also tried to use different header to expose set-cookie
and cookie
header. I set the Access-Control-Allow-Credentials
to True.
Nothing is working, so if you have any idea, I take it.