iachat/app
Pranav 4a83e70158
fix: Avoid throwing 406 for non-json requests (#11701)
Users get confused between app routes and API routes. Instead of hitting
/api, they append /app in the API call, which ends up calling the
dashboard controller and throws an error. To fix this, we added a check
to throw a 406 Not Acceptable for non-HTML requests. But Meta requires
Accept: \*/\* to return 200 for the integration to be accepted.

This change will only throw an error for JSON requests.

Fixes #11697
Fixes https://github.com/chatwoot/chatwoot/issues/11251
Fixes https://github.com/chatwoot/chatwoot/issues/11205
2025-06-10 15:12:32 -04:00
..
actions chore: Avoid contact inboxes getting deleted (#10612) 2024-12-26 16:17:38 +05:30
assets chore: Update styles in settings pages (#11070) 2025-03-18 14:40:02 -07:00
builders fix: Prevent creating duplicate messages via Instagram echo events (#11535) 2025-05-22 11:02:28 +05:30
channels fix: Move contact events to account stream rather than individual user stream (#11082) 2025-03-13 17:46:48 -07:00
controllers fix: Avoid throwing 406 for non-json requests (#11701) 2025-06-10 15:12:32 -04:00
dashboards chore: improve plan-based feature handling with plan hierarchy (#11335) 2025-04-28 14:13:56 -07:00
dispatchers feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
drops feat: Add the support for custom attributes in message variables (#8511) 2023-12-08 14:13:35 -08:00
fields chore: improve plan-based feature handling with plan hierarchy (#11335) 2025-04-28 14:13:56 -07:00
finders feat: Add support for search_conversations in copilot (#11520) 2025-05-20 19:22:17 -07:00
helpers chore: improve plan-based feature handling with plan hierarchy (#11335) 2025-04-28 14:13:56 -07:00
javascript feat: Show conversation count for filters/folders in header (#11698) 2025-06-10 13:59:25 -04:00
jobs feat: auto resolve label option and fixes (#11541) 2025-06-04 14:53:24 +05:30
listeners feat: Add support for realtime-events in copilot-threads and copilot-messages (#11557) 2025-05-22 22:25:05 -07:00
mailboxes chore: upgrade ruby version to 3.4.4 (#11524) 2025-05-21 19:40:07 +05:30
mailers feat: sanitize inbox name (#11597) 2025-06-09 14:46:12 +05:30
models feat: sanitize inbox name (#11597) 2025-06-09 14:46:12 +05:30
policies feat: Add conversation delete feature (#11677) 2025-06-05 15:53:17 -05:00
presenters chore: Update the precision of the updated_at timestamp in conversation model (#10875) 2025-02-10 20:22:11 -08:00
services feat: Add message support for input_select type in Facebook (#11627) 2025-06-10 16:15:11 +05:30
views feat: Add RTL support in public help center (#11692) 2025-06-09 15:23:04 -04:00
workers feat: API Endpoints to update message status (#11387) 2025-04-29 15:33:11 -07:00