Skip to content

CORS error #5

Open
Open
@antonyleme

Description

@antonyleme

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions