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

How set allow http for KinClient? #52

Description

@alexspark21

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions