Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tender-papayas-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

Limits Omnichannel webhook maximum response size to 10mb.
1 change: 1 addition & 0 deletions apps/meteor/app/livechat/server/api/v1/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ API.v1.addRoute(
body: sampleData,
// SECURITY: Webhooks can only be configured by users with enough privileges. It's ok to disable this check here.
ignoreSsrfValidation: true,
size: 10 * 1024 * 1024,
} as ExtendedFetchOptions;

const webhookUrl = settings.get<string>('Livechat_webhookUrl');
Expand Down
1 change: 1 addition & 0 deletions apps/meteor/app/livechat/server/lib/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export async function sendRequest(
timeout,
// SECURITY: Webhooks can only be configured by users with enough privileges. It's ok to disable this check here.
ignoreSsrfValidation: true,
size: 10 * 1024 * 1024,
});

if (result.status === 200) {
Expand Down
Loading