ton-core / ton

Most popular TON Typescript Library
MIT License
69 stars 56 forks source link

Request header field x-ton-client-version is not allowed by Access-Control-Allow-Headers in preflight response #1

Closed dmitrydrynov closed 1 year ago

dmitrydrynov commented 1 year ago

Hello,

I am trying to exec callGetMethod from the browser and am getting this error: Access to XMLHttpRequest at 'https://testnet.toncenter.com/api/v2/jsonRPC' from origin '...' has been blocked by CORS policy: Request header field x-ton-client-version is not allowed by Access-Control-Allow-Headers in preflight response.

I'm using apiKey for TonClient() function

kdimentionaltree commented 1 year ago

Hello, we've allowed all headers in testnet. Could you please check, if it works fine now?

dvlkv commented 1 year ago

@dmitrydrynov have you checked?

dmitrydrynov commented 1 year ago

No yet. I moved my get methods requests to the backend.