CORS Policy to support color extraction in Uniswap App
willhennessy opened this issue · 1 comments
willhennessy commented
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:
- 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
System Specs:
- OS: Chrome
elenadimitrova commented