Odoo Help

1

OdooV9: Invalid CSRF Token

By
xiaolong97427
on 4/18/16, 7:32 PM 1,422 views

Hi,

I am trying to call odoo service using AngularJS. But calling the http://<servername>:<port>/web/session/authenticate (POST method), I got the error: Invalid CSRF Token

I read that I have to call the same url, use GET and X-CSRF-TOKEN=FETCH in the header in order to get the token then re-use it. But I have the same error.

Any idea on how I can solve "Invalid CSRF Token" ? 

0
ranjithkumar
On 2/14/17, 4:51 AM

Call this method (GET) http://<servername>:<port>/web/login


you get CSRF token from this link :)

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 4/18/16, 7:32 PM
Seen: 1422 times
Last updated: 2/15/17, 1:59 AM