Cosmjs/stargate and authorization #12
-
I'm unable to use Setten with Cosmjs/Stargate, I'm always getting a 401 (unauthorized) when trying to connect with it. const client = await StargateClient.connect({
url: "https://rpc.phoenix.terra.setten.io/<project_id>",
headers: {
Authorization: "Bearer <setten_key>"
}}
}) This instantly fails with a 401. I can confirm that my key works (I can use cURL no problem). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @matpb! |
Beta Was this translation helpful? Give feedback.
Hi @matpb!
Thanks for reaching out, it seems like we weren't correctly proxying POST calls on the root path.
It should now be fixed, I tried it myself with cosmjs and seems alright.
Have a good day