Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS error #5

Open
antonyleme opened this issue Feb 16, 2021 · 0 comments
Open

CORS error #5

antonyleme opened this issue Feb 16, 2021 · 0 comments

Comments

@antonyleme
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant