devspace icon indicating copy to clipboard operation
devspace copied to clipboard

Cannot access the UI from within a Github Codespace

Open arcanis opened this issue 4 years ago • 2 comments

What happened?

The Codespaces expose their ports through https. Since the UI loads its config through HTTP, Chrome rejects the request:

Mixed Content: The page at 'https://xxxx.githubpreview.dev/' was loaded over HTTPS, but requested an insecure resource 'http://xxxx.githubpreview.dev/api/config'. This request has been blocked; the content must be served over HTTPS.

The fix would be to use the same protocol when loading the config as the one used when accessing the UI.

What did you expect to happen instead?

Should work! 🙂

How can we reproduce the bug? (as minimally and precisely as possible)

Will need a Codespace beta access, but you can probably test it more easily by using some kind of https proxy.

Local Environment: Latest DevSpace release

Anything else we need to know?

/kind bug

arcanis avatar Aug 19 '21 00:08 arcanis

@arcanis thanks for creating this issue! Yes the http is currently hardcoded, but we can easily make that dynamic, thanks for pointing that out!

FabianKramm avatar Aug 19 '21 08:08 FabianKramm

@arcanis we just released v5.15.0-beta.0, would be great if you could confirm that this fixes your problem

FabianKramm avatar Aug 24 '21 19:08 FabianKramm