-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client: Don't send auth header when token is empty #782
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
I recommend modding the .test-env to temporarily re-point
STD_TESTING_URL="https://github.com/Eric-Warehime/algorand-sdk-testing"
STD_TESTING_BRNACH="client-no-header-tests"
so we can see the tests run in CI.
Here is the link to the passing CI w/ test-env pointed at the altered cucumber tests. https://app.circleci.com/pipelines/github/algorand/js-algorand-sdk/1040/workflows/8182c1e1-ef40-4841-bd35-e2163b496ff4 |
Implements #635
This change removes the custom auth headers from requests for all of kmd, algod, and indexer clients.
After removing this we should be sending only standard headers in requests which should avoid the preflight queries mentioned in 635.
I've added cucumber tests in algorand/algorand-sdk-testing#282 and one test in
tests/9.Client.ts