diverseui icon indicating copy to clipboard operation
diverseui copied to clipboard

CORS error

Open antonyleme opened this issue 4 years ago • 0 comments

I'm trying to get the avatars through api using the following code:

api.get('https://diverseui.com/images').then(res => {
     console.log(res)
})

But i got CORS error message.

Access to XMLHttpRequest at 'https://diverseui.com/images' from origin 'http://localhost:8888' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

What should I do?

antonyleme avatar Feb 16 '21 17:02 antonyleme