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

[feature] Web3Modal: Add custom headers to explorer-api request #903

Closed
Tracked by #832
ignaciosantise opened this issue Jun 8, 2023 · 0 comments
Closed
Tracked by #832
Assignees
Labels
enhancement New feature or request

Comments

@ignaciosantise
Copy link

ignaciosantise commented Jun 8, 2023

What problem does this new feature solve?

Adds user-agent and referer headers in explorer-api requests

Describe the solution you'd like

  • user-agent that follows the pattern <web3modal version>/<core sdk version>/<operating system>
  • referer containing the name provided in the sdk metadata (with no spaces)

example:

headers: {
 user-agent: 'w3m-ios-1.0.0/swift-1.5.7/ios-16.5',
 referer: 'Showcase'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants