Odoo Help


OdooV9: Invalid CSRF Token

on 4/18/16, 7:32 PM 3,488 views


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" ? 

Fred Lu
On 4/13/17, 10:44 AM

I have the same issue.

After running migrate script of openupgrade from v8 to v9,

When selecting the migrated database to login in, there is the following error message.

Bad Request

Session expired (invalid CSRF token)

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.


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)


Asked: 4/18/16, 7:32 PM
Seen: 3488 times
Last updated: 4/13/17, 10:44 AM