Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2158 Visualizzazioni

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?


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
giu 21
1554
2
dic 23
24339
0
gen 19
5800
0
mag 18
4330
0
gen 17
4712