dcaputo-harmoni / open-balena-admin

Open Balena Admin
MIT License
90 stars 18 forks source link

Login Doesn't Work #15

Closed anthonyra closed 1 year ago

anthonyra commented 1 year ago

I'm trying to login, via admin.<mydomain.com>:8080 but continue to get an error. I believe it's because of a Cors restriction on my browser when trying to access/fetch api.<mydomain.com>/login_.

I'm able to get an OK returned from api.<mydomain.com>/ping but when I attempt to access /login_ it fails even when I try to access it straight from the browser.

anthonyra commented 1 year ago

Some additional thoughts, I've read a handful of the other issues. I can see the importance of keeping this separate from open-balena. In this line of thought, maybe we could include https://github.com/Rob--W/cors-anywhere as another container for open-balena-admin to ensure api requests aren't blocked browser side? I'm no expert, so I'm not sure if this will actually help or fix the issues I'm seeing.

anthonyra commented 1 year ago

Turns out it was the way docker was being installed on the server side. When installed via repo the problem went away.