#Issue resolving Circle EURC TOML

2 messages · Page 1 of 1 (latest)

forest glacier
#

I am using the TOML resolver from stellar-sdk, and have basically lifted the Freighter logic for it into the Blend dApp.

Circle appears to have a redirect that is causing the resolve function to throw due to a CORS error. If I hit the redirected link directly, I can load it just fine.

https://www.circle.com/.well-known/stellar.toml
redirects to
https://www.circle.com/hubfs/stellar.toml.txt

I could special case this TOML, but I'm assuming more projects use the Resolver. I haven't seen this issue for any other asset.

Has anyone else run onto this?

blazing knoll
#

I haven't tried resolver but i wonder if it's using axios i had problem with that once using axios with redirects (but i don't think it was cors related iirc) and when i used fetch i didn't. When I am parsing tomls i don't actually use the sdk to do it, i just look up the home domain but then use a function that uses fetch, then i use npm toml package