diff --git a/superset-frontend/src/views/CRUD/data/database/DatabaseModal.tsx b/superset-frontend/src/views/CRUD/data/database/DatabaseModal.tsx index 3000ee8e2..faaa37b0c 100644 --- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal.tsx +++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal.tsx @@ -157,7 +157,8 @@ const DatabaseModal: FunctionComponent = ({ SupersetClient.post({ endpoint: 'api/v1/database/test_connection', - postPayload: JSON.stringify(connection), + body: JSON.stringify(connection), + headers: { 'Content-Type': 'application/json' }, }) .then(() => { addSuccessToast(t('Connection looks good!'));