I
I
ilberic2020-11-08 13:31:02
CORS
ilberic, 2020-11-08 13:31:02

How to get around the CORS error when receiving data from vkApi through your token?

I create a SPA on React, fetch product data from my VK group via vkapi, directly with my access token, I get a cors'a error. While developing, I was interrupted by a browser add-on that allowed cors, but what to do next, in production? How to make the VK server allow cors? Or maybe it's possible to bypass this cors somehow? Get data via script tag, or something like that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bqio, 2020-11-08
@bqio

Create an application and add your domain (website, url) to the allowed ones.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question