diff --git a/packages/destination-actions/src/destinations/responsys/index.ts b/packages/destination-actions/src/destinations/responsys/index.ts index e577268e48..bac344755c 100644 --- a/packages/destination-actions/src/destinations/responsys/index.ts +++ b/packages/destination-actions/src/destinations/responsys/index.ts @@ -184,7 +184,9 @@ const destination: DestinationDefinition = { headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - body: `user_name=${settings.username}&password=${settings.userPassword}&auth_type=password` + body: `user_name=${encodeURIComponent(settings.username)}&password=${encodeURIComponent( + settings.userPassword + )}&auth_type=password` }) return { accessToken: res.data.authToken } }