Uniswap / interface

🦄 Open source interfaces for the Uniswap protocol
https://app.uniswap.org
GNU General Public License v3.0
4.9k stars 4.97k forks source link

Quote blocked by Cors policy in build #3856

Open ubuntutest opened 2 years ago

ubuntutest commented 2 years ago

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

ubuntutest commented 2 years ago

Anyone know how to fix this?

ubuntutest commented 2 years ago

is there no interest?

ubuntutest commented 2 years ago

I tried with the latest version, now it goes with some tokens and with others it doesn't.

The token test now works, but if I try with KISHU / FLOKI / KLEE I always encounter the CORS problem

ubuntutest commented 2 years ago

if ever you are interested in this bug, I inform you that version 4.22.1 works without problems, I did a nice downgrade

ubuntutest commented 2 years ago

version 4.22 does not work with mobile metamask, I also tried with 4.16 before integrating the routing api

Either there is the CORS problem, or it does not work from the mobile metamask browser for android, the tokens in the swap do not load, the preloader remains indefinitely, or the word "connect the wallet" remains without ever being able to connect

it would be interesting to have a response from the developers

ajlamarc commented 1 year ago

@ubuntutest, did you ever find a resolution to this issue? I'm seeing the same problem

ubuntutest commented 1 year ago

I'm using a very old version, now I can't remember which one. I'm afraid uniswap is becoming more and more closed source, see how they are organizing themselves with uniswap v4. however it would be interesting to have feedback from the dev team

ajlamarc commented 1 year ago

I'm using a very old version, now I can't remember which one. I'm afraid uniswap is becoming more and more closed source, see how they are organizing themselves with uniswap v4. however it would be interesting to have feedback from the dev team

I also was able to get 4.22.1 working, thanks for the old suggestion. It may be worth maintaining a fork

OwenSanzas commented 2 weeks ago

In 2024, they still did not fix it.