Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4405 Lượt xem

I'm writing a controller and testing it using Postman.

The controller makes a login using a user credentials.

Every time, I find that Postman creates a cookie (containing the session_id) from the response.

The strange thing is that when I try to read the cookie from Odoo before returning the response (request.httprequest.cookies), I find it empty.
How can I read the cookie from Odoo as Postman does? 


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 2 23
3547
3
thg 7 20
13208
3
thg 6 17
15247
0
thg 3 15
4789
1
thg 5 25
3494