recipes icon indicating copy to clipboard operation
recipes copied to clipboard

API usage

Open ExarchD opened this issue 2 years ago • 1 comments

Issue

I'm having trouble authenticating the API through a reverse proxy. I can run a simple API call like this inside the docker container and I have no troubles: curl -X GET -H 'Authorization: Token bd7be19190910316b3a54d1d3623ddb441e02d64' http://localhost/api/recipe/

However, when I run the same command (with modified url) I get {"detail":"Authentication credentials were not provided."} as a response.

I'm using Nginx Proxy Manager, and the website is working perfectly fine, so I suspect something is being blocked specifically for the API

Tandoor Version

1.3.2

OS Version

Opensuse

Setup

Docker / Docker-Compose

Reverse Proxy

Nginx Proxy Manager (NPM)

Other

No response

Environment file

No response

Docker-Compose file

No response

Relevant logs

No response

ExarchD avatar Jul 26 '22 01:07 ExarchD

the frontend does use the api all the time but with session authentication so it might be that you have a nginx config somewhere that strips the auth header

vabene1111 avatar Jul 26 '22 05:07 vabene1111

are you using the built in nginx config or did you setup your own?

smilerz avatar Aug 23 '22 19:08 smilerz