Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2397 Vizualizări

How to manage session in odoo from angular to odoo.We are facing issue cors error when connecting odoo with angular.

Here is my code

http.route('/api/auth/login', methods=['OPTIONS','POST'], type='json', auth='none', csrf=False,cors='*')

def token(self, **post):

    print(self)

Added sample code here api working when adding cors * in backend.But session is empty.How to handle session here.Can anyone help us to resolve this?


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
iun. 21
1691
2
dec. 23
24576
0
ian. 19
5975
0
mai 18
4520
0
ian. 17
4973