Skip to content

Enable CORS for client-side requests #2

@SwiftAdviser

Description

@SwiftAdviser

Right now when I try to connect to https://tonapi.io from the client-side using a client-side token, I ALWAYS receive this response:

image

Usually, if we want to use security headers for public third-party front-end API it's good to read this data from any website.

Steps to reproduce:

  1. Create front-end app (react for example)
  2. Install tonapi-sdk-js
  3. Get client-side token
  4. Try to get data using client token even from localhost or not — doesn't matter

You'll get an error.

Configuration:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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