Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.

How set allow http for KinClient? #52

Open
alexspark21 opened this issue Aug 3, 2020 · 0 comments
Open

How set allow http for KinClient? #52

alexspark21 opened this issue Aug 3, 2020 · 0 comments

Comments

@alexspark21
Copy link

How set allow http for KinClient?
It is my code.
const KinClient = require('@kinecosystem/kin-sdk-node').KinClient; let client = new KinClient(new Environment({url: http://horizonServerUrl.test:8006})); const fee = await client.getMinimumFee();
but when I call new KinClient, I get error Cannot connect to insecure horizon server
https://github.com/kinecosystem/js-kin-sdk/blob/703eb726143ca908150672195d1f6d90f815fc7b/src/server.js#L39
you every time to set allowHttp from options, and I don't understand how I can set allowHttp = true for sync with my node

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant