Closed RonnyDo closed 4 years ago
Hi there!
My guess is that you're using an older version of Gophish which expects the API key to be provided in the URL. To prevent the API key from being seen in the browser history (or other forms of logging), we've moved it to the Authorization
header.
I'd encourage you to update your version of Gophish. If you're still encountering this issue with the latest version of this library and the latest version of Gophish, please let me know and we can reopen this.
Thanks for the awesome project and all the affort you put in it!
It seems that the current API release doesn't work, because no requests seems to send the API key with it. Basic example from the official documenation:
Resulting error (tested with python 3.8.1):
I had a look into the code and it seems as the "api_key" parameter, which needs to be appended at in the request URL, is not set anywhere. I fixed it by adding the following to api.py:57:
Hope that helps to fix the issue.