ethereum-optimism/ethereum-optimism.github.io

CORS Policy to support color extraction in Uniswap App

willhennessy opened this issue · 1 comments

The Uniswap App is unable to perform color extraction on token logo images hosted at ethereum-optimism.github.io/logos due to the CORS policy.

Access to image at 'https://ethereum-optimism.github.io/logos/SNX.svg' from origin 'https://app.uniswap.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Can we relax the CORS policy to support this use case?

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Add Liquidity page in uniswap app: https://app.uniswap.org/#/add/0x6fd9d7AD17242c41f7131d257212c54A0e816691/0x94b008aA00579c1307B0EF2c499aD98a8ce58e58/3000

Expected behavior
The slider handles on the price chart should match the color of the tokens. In the example above, pink for UNI and Green for USDT.
Uniswap/interface#2049

Screenshots
Screen Shot 2021-11-01 at 7 16 21 PM

System Specs:

  • OS: Chrome

I see this is showing correctly atm. Closing but please reopen if still an issue.

Screenshot 2021-12-29 at 11 56 26