Tomasz Majer commented on issue #416328 at GitLab.org / GitLab

Tomasz Majer
2023-06-27T07:17:00Z

According to browser's console logs it's due to CSP (this is taken from our self-hosted instance):

Refused to connect to '<URL>' because it violates the following Content Security Policy directive: "connect-src <URL>".

Refused to connect to 'https://gitlab.****/***/***/-/environments.json?nested=true&page=1&scope=available&search=' because it violates the following Content Security Policy directive: "connect-src https://kas.****/k8s-proxy/".

(anonymous) @ xhr.js:210
t.exports @ xhr.js:15
t.exports @ dispatchRequest.js:56
Promise.then (async)
l.request @ Axios.js:88
r.forEach.l.<computed> @ Axios.js:129
(anonymous) @ bind.js:9
environmentApp @ resolvers.js:78
t.withValue @ context.esm.js:69
(anonymous) @ LocalState.js:212
(anonymous) @ tslib.es6.js:147
(anonymous) @ tslib.es6.js:128
(anonymous) @ tslib.es6.js:121
u @ tslib.es6.js:117
t.resolveField @ LocalState.js:195
(anonymous) @ LocalState.js:161
(anonymous) @ tslib.es6.js:147
(anonymous) @ tslib.es6.js:128
(anonymous) @ tslib.es6.js:121
u @ tslib.es6.js:117
c @ LocalState.js:154
(anonymous) @ LocalState.js:188
(anonymous) @ tslib.es6.js:147
(anonymous) @ tslib.es6.js:128
(anonymous) @ tslib.es6.js:121
u @ tslib.es6.js:117
t.resolveSelectionSet @ LocalState.js:148
(anonymous) @ LocalState.js:140
(anonymous) @ tslib.es6.js:147
(anonymous) @ tslib.es6.js:128
(anonymous) @ tslib.es6.js:121
u @ tslib.es6.js:117
t.resolveDocument @ LocalState.js:118
(anonymous) @ LocalState.js:44
(anonymous) @ tslib.es6.js:147
(anonymous) @ tslib.es6.js:128
(anonymous) @ tslib.es6.js:121
u @ tslib.es6.js:117
t.runResolvers @ LocalState.js:41
(anonymous) @ QueryManager.js:576
n @ asyncMap.js:16
(anonymous) @ asyncMap.js:9
then @ asyncMap.js:9
(anonymous) @ asyncMap.js:17
D @ module.js:132
_ @ module.js:176
e.next @ module.js:225
(anonymous) @ iteration.js:4
r @ iteration.js:4
next @ Concast.js:25
D @ module.js:132
_ @ module.js:176
e.next @ module.js:225
(anonymous) @ module.js:547
(anonymous) @ module.js:70
Promise.then (async)
v @ module.js:68
(anonymous) @ module.js:543
t @ module.js:190
e.subscribe @ module.js:264
complete @ Concast.js:57
e.start @ Concast.js:83
e @ Concast.js:75
t.getObservableFromLink @ QueryManager.js:568
t.getResultsFromLink @ QueryManager.js:588
y @ QueryManager.js:753
t.fetchQueryByPolicy @ QueryManager.js:780
b @ QueryManager.js:636
t.fetchQueryObservable @ QueryManager.js:643
e.fetch @ ObservableQuery.js:295
e.reobserve @ ObservableQuery.js:372
(anonymous) @ ObservableQuery.js:30
t @ module.js:190
e.subscribe @ module.js:264
n.subscribe @ vue-apollo.esm.js:1340
value @ vue-apollo.esm.js:916
value @ vue-apollo.esm.js:891
hn @ vue.runtime.esm.js:3017
t.$watch @ vue.runtime.esm.js:5637
value @ vue-apollo.esm.js:636
value @ vue-apollo.esm.js:530
value @ vue-apollo.esm.js:1423
H @ vue-apollo.esm.js:2020
hn @ vue.runtime.esm.js:3017
or @ vue.runtime.esm.js:4031
t._init @ vue.runtime.esm.js:5693
a @ vue.runtime.esm.js:5826
(anonymous) @ vue.runtime.esm.js:4544
init @ vue.runtime.esm.js:4406
(anonymous) @ vue.runtime.esm.js:6567
d @ vue.runtime.esm.js:6521
(anonymous) @ vue.runtime.esm.js:7109
t._update @ vue.runtime.esm.js:3765
r @ vue.runtime.esm.js:3875
t.get @ vue.runtime.esm.js:3446
t @ vue.runtime.esm.js:3436
t @ vue.runtime.esm.js:3892
Kr.$mount @ vue.runtime.esm.js:8772
t._init @ vue.runtime.esm.js:5701
Kr @ vue.runtime.esm.js:5762
(anonymous) @ index.js:23
OlFB @ index.js:5
t @ bootstrap:101
175 @ pages.projects.environments.index.c5ef594b.chunk.js:1
t @ bootstrap:101
c @ bootstrap:45
a @ bootstrap:32
(anonymous) @ pages.projects.environments.index.c5ef594b.chunk.js:1