yongjhih / docker-parse-server

Provide docker images and docker stack for parse-server npm versions and latest commit
https://hub.docker.com/r/yongjhih/parse-server/
Apache License 2.0
475 stars 166 forks source link

"Unauthorized" error using docker-compose-le.yml #60

Open corruptedbuffer opened 7 years ago

corruptedbuffer commented 7 years ago

I'm using the docker-compose-le.yml file to run Parse with Letsencrypt, following the example in the wiki. When I browse to https://my-domain/parse, I see the following JSON in response: {"error":"unauthorized"}. Browsing to https://my-domain properly shows the default nginx greeting "I dream of being a web site.".

Is this an indication of something obvious I've done wrong?

Using Docker 1.10.3 on Ubuntu 16.04.1 x64

gdiazlo commented 7 years ago

did you fix this? what's the workaround?

Nightbr commented 7 years ago

it is the correct behavior, you must authenticate your query with headers:

X-Parse-Application-Id
X-Parse-Master-Key

Try using postman or curl to make a proper request: curl -X POST -H "X-Parse-Application-Id: MyAppID" -H "X-Parse-Master-Key: MyMasterKey" -H "Content-Type: application/json" -d '{}' "https://my-domain/parse/functions/hello"