Same thing:
> curl --header "Content-Type:application/json" --header "Authorization: Token my-token" https://my.opalstack.com/api/v0/mail/list/
{"error": "error"}%
If I add --head
, I get:
HTTP/1.1 405 Method Not Allowed
Server: nginx
Date: Tue, 17 Nov 2020 21:18:50 GMT
Content-Type: application/json
Content-Length: 41
Connection: keep-alive
Vary: Accept
Allow: OPTIONS, GET
X-Frame-Options: DENY
X-Content-Type-Options: nosniff