Skip to content

CORS issue, unable to fetch user details #2

@saurabh-deep

Description

@saurabh-deep

After successful authorization, it fails in welcome.html while trying to fetch user details using the user info API, due to CORS restrictions. I am receiving the following error. I tried using the cors module, but it didn't help. I am not sure how best to use it in this case.

Access to fetch at 'http://api.github.com/user' from origin 'http://localhost:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.

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