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

feat: enable CORS for local reth #2665

Merged
merged 1 commit into from
Aug 15, 2024
Merged

feat: enable CORS for local reth #2665

merged 1 commit into from
Aug 15, 2024

Conversation

sanekmelnikov
Copy link
Collaborator

What ❔

This PR adds the --http.corsdomain "*" option to Docker Compose files to enable CORS (Cross-Origin Resource Sharing) on locally running Reth nodes.

Why ❔

Enables web applications like dapp-portal and block-explorer to make requests to the local RPC endpoint. Without CORS enabled, browser policies block these requests, causing the applications to fail.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint

@Deniallugo Deniallugo enabled auto-merge August 15, 2024 16:51
@Deniallugo Deniallugo added this pull request to the merge queue Aug 15, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 15, 2024
@Deniallugo Deniallugo added this pull request to the merge queue Aug 15, 2024
Merged via the queue into main with commit 1696e6e Aug 15, 2024
48 checks passed
@Deniallugo Deniallugo deleted the reth-cors branch August 15, 2024 17:56
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