Uniswap / Uniswap/interface

Quote blocked by Cors policy in build

Open
#3,856 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
5.5k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

I am getting a CORS error, I have tried from version 4.65.0 up to the latest.

Token to test: 0xb53ecf1345cabee6ea1a65100ebb153cebcac40f

It happens after creating the build with yarn build.
If I try with yarn start, in development it works correctly.

Immagine 2022-05-20 025353

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the supplied token using yarn build, then compare it with yarn start, which reportedly works. Trace the built application's CORS failure from the browser error and screenshot; done means the built interface can complete the same request without the CORS error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.