Skip to content
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

Merged
merged 7 commits into from
May 17, 2023

Conversation

Eric-Warehime
Copy link
Contributor

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

Copy link
Contributor

@tzaffi tzaffi left a 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.

@Eric-Warehime
Copy link
Contributor Author

I recommend modding the .test-env

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants