diff options
Diffstat (limited to 'spec/frontend/environments/environment_form_spec.js')
-rw-r--r-- | spec/frontend/environments/environment_form_spec.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/frontend/environments/environment_form_spec.js b/spec/frontend/environments/environment_form_spec.js index 22dd7437d82..5888b22aece 100644 --- a/spec/frontend/environments/environment_form_spec.js +++ b/spec/frontend/environments/environment_form_spec.js @@ -28,12 +28,11 @@ const userAccessAuthorizedAgents = [ const configuration = { basePath: mockKasTunnelUrl.replace(/\/$/, ''), - baseOptions: { - headers: { - 'GitLab-Agent-Id': 2, - }, - withCredentials: true, + headers: { + 'GitLab-Agent-Id': 2, + 'Content-Type': 'application/json', }, + credentials: 'include', }; describe('~/environments/components/form.vue', () => { |