ajepe / odoo-addons

Odoo addons
24 stars 40 forks source link

Problems with https #21

Open loaizamateo opened 3 years ago

loaizamateo commented 3 years ago

Hello, I try to make a request to the api according to your documentation, and when I send a request I get the following message:

401 - { "type": "access_token_not_found", "message": "missing access token in request header" }

I send acces_token in the headers. You can help?

I use nginx

ajepe commented 3 years ago

Try changing the acces_token to acces-token , are you making use of a reverse proxy

loaizamateo commented 3 years ago

Hi, yes. NGINX. I try with acces-token and not working.

Matt-OBell commented 3 years ago

There is nginx configuration that allow you to have custom headers, try changing it to Acces-Token

aqeebimtiaz commented 2 years ago

There is nginx configuration that allow you to have custom headers, try changing it to Acces-Token

@Matt-OBell Thanks! Only changing to Access-Token worked on my server.

Neither access_token or access-token worked for me.