Web IDE Refused to connect on selfhosted instance

Summary

I'm trying to open the Web IDE on my gitlab instance https://lab.projecthorizon.onl but it throws a "refused to connect" error. I'm also running it on a reverse proxy which uses caddy.

Steps to reproduce

  1. Open Web IDE for any project.
Edited by Sagun K.