-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alpha router uniswap CORS error #625
Comments
I'm having the same issue. For some reason this same "No 'Access-Control-Allow-Origin' header" error has been popping up since very recently and hasn't stopped appearing since, making us unable to make use of the alpha router. Please look into this! |
Did you manage to solve this somehow ? :( |
I did actually find a workaround for this specific issue - If you have a back-end, import the package there and let the front-end make get requests to the back-end in order to obtain routes using the alpha router. This resolved the issue for me. Hope it helps! |
I tried this for me it doesn't work. i can't initialize alpha router on backend side... i get this problem: #523 |
I'm submitting a ...
[ x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project
I am trying to implement swap form with uniswap SDK, but i am getting CORS error.
here is my code (mostly copied from uniswap repo):
here is error that i am getting:
"@uniswap/v2-sdk": "^3.0.1",
"@uniswap/v3-periphery": "1.4.4",
"@uniswap/router-sdk": "1.9.2",
"@uniswap/v3-core": "1.0.1",
"@uniswap/smart-order-router": "3.17.3",
"@uniswap/sdk-core": "^3.1.0",
"@uniswap/v3-sdk": "^3.9.0",
The text was updated successfully, but these errors were encountered: