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

Add sendCredentials option to createFetchMiddleware #113

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brotchie
Copy link

@brotchie brotchie commented Feb 11, 2022

createFetchMiddleware doesn't support calling into an Eth JSON RPC Node that's protected by cookie-based
authentication. The standard approach to solving this is to tell fetch to send cookies along with CORS
requests. This change adds a sendCredentials option to createFetchMiddleware that, when set to true,
indicates cookies to be send for CORS requests.

…okies for cross-origin calls.

createFetchMiddleware doesn't support calling into am Eth JSON RPC Node that's protected by cookie-based
authentication. The standard approach to solving this is to tell fetch to send cookies along with CORS
requests. This change adds a sendCredentials option to createFetchMiddleware that, when set to true,
indicates cookies to be send for CORS requests.
@brotchie brotchie requested a review from a team as a code owner February 11, 2022 23:15
@mcmire
Copy link
Contributor

mcmire commented Sep 29, 2022

Hi @brotchie, sorry it's taken us so long to respond to you on this. Would you mind enabling edits to your branch from maintainers? I've made some changes to this repo that resulted in a merge conflict on this PR, but I've fixed that on my end, so I'm happy to push up those changes and merge this PR once you enable edits :)

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

Successfully merging this pull request may close these issues.

2 participants