alfred-gitlab
alfred-gitlab copied to clipboard
feat: add Headers for api call
In the latest Gitlab API interface, you need to bring the Token into the headers to make the call.This solves my 403 problem.
@fuergaosi233 Thanks for the PR! Are you able to clarify what you're attempting to solve for here?
I just updated our install to 13.4.1 to test, and auth is still working for me without any code changes. Further, the API docs seem to indicate that query-string based authentication is still supported.
https://docs.gitlab.com/ee/api/#personalproject-access-tokens
I'm certainly not against moving to the header, since it is a better option that I can only assume was perhaps not supported when the workflow was originally written, but would like to understand if there's an issue at play here.
@lukewaite Sorry, I don't konw why it's not work.If I didn't make the change then it won't work, I'm using my company's Gitlab so I don't know its version number.