Skip to content

When entering the token in the web UI, login fails with "Failed to fetch". #277

@Zoean-z

Description

@Zoean-z

What version of HAPI is running?

0.16.1

What platform is your computer?

No response

What issue are you seeing?

When entering the token in the web UI, login fails with "Failed to fetch".

Browser console shows a CORS error:

Access to fetch at 'https://app.run/api/auth' from origin 'https://app.hapi.run'
has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present.
POST https://app.run/api/auth net::ERR_FAILED

It seems the frontend is sending the auth request to https://app.run/api/auth, which causes a CORS failure.

What steps can reproduce the bug?

Start HAPI hub

Open the web UI

Enter the token on the login page

Login fails and the browser console shows the CORS error above

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions