Skip to content

Refused to connect to self-hosted GitLab instance #8110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mb1337 opened this issue Apr 10, 2025 · 6 comments
Open

Refused to connect to self-hosted GitLab instance #8110

mb1337 opened this issue Apr 10, 2025 · 6 comments
Assignees
Labels
bug Something isn't working UI Any broken visuals like layouts, colors etc.

Comments

@mb1337
Copy link

mb1337 commented Apr 10, 2025

Version

0.14.16

Operating System

Windows

Distribution Method

msi (Windows)

Describe the issue

GitLab integration doesn’t work for our self-hosted GitLab instance.

How to reproduce (Optional)

  1. Configure GitLab integration with instance url that is not gitlab.com

Expected behavior (Optional)

Self-hosted GitLab instances should work

Relevant log output (Optional)

Fetch API cannot load https://<self-hosted-gitlab>/api/v4/projects/<project-id>/merge_requests. Refused to connect because it violates the document’s Content Security Policy. 
gitlabListingService.svelte.ts:68
@mb1337 mb1337 added the bug Something isn't working label Apr 10, 2025
@Byron Byron added the UI Any broken visuals like layouts, colors etc. label Apr 12, 2025
@Byron
Copy link
Collaborator

Byron commented Apr 12, 2025

Thanks a lot for reporting.

I was under the impression that self-hosted instances should work, but @Caleb-T-Owens would know more about this.

@krlvi
Copy link
Member

krlvi commented Apr 14, 2025

Hi @mb1337, and sorry for the trouble. Custom hosts are not yet supported but this is something we will be looking into adding soon. Here's the parent issue #4714

@krlvi
Copy link
Member

krlvi commented Apr 14, 2025

The next app release (0.14.19) will include a mechanism for adding custom CSP entries. I've also added documentation for how to configure this. If you wish to try it sooner, you can get the latest nightly build from here

Let me know if this helps.

@nolith
Copy link
Contributor

nolith commented Apr 15, 2025

Other than the CSP settings, reading the docs I was under the impression that self-hosted GitLab servers are already supported, however the integration box only shows up if the target remote is set to something on gitlab.com and not when it's self-hosted.

@mb1337
Copy link
Author

mb1337 commented Apr 15, 2025

Thank you for the quick turnaround. This looks like it will work for my needs.

@krlvi
Copy link
Member

krlvi commented Apr 15, 2025

Other than the CSP settings, reading the docs I was under the impression that self-hosted GitLab servers are already supported, however the integration box only shows up if the target remote is set to something on gitlab.com and not when it's self-hosted.

Hey! Thanks for the ping. This is indeed correct - I have added an issue to track this #8171

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working UI Any broken visuals like layouts, colors etc.
Projects
None yet
Development

No branches or pull requests

4 participants