iachat/app/javascript/dashboard/i18n/locale/en
Muhsin Keloth a4c3d3d8c0
feat(widget): Allow widget loading in mobile app WebViews when domain restrictions are set (#13763)
When `allowed_domains` is configured on a web widget inbox, the server
responds with Content-Security-Policy: frame-ancestors <domains>, which
blocks the widget iframe in mobile app WebViews. This happens because
WebViews load content from file:// or null origins, which cannot match
any domain in the frame-ancestors directive.

This adds a per-inbox toggle — "Enable widget in mobile apps" — that
skips the frame-ancestors header when the request has no valid Origin
(i.e., it comes from a mobile WebView). Web browsers with a real origin
still get domain restrictions enforced as usual.

<img width="2330" height="1490" alt="CleanShot 2026-03-11 at 10 13
01@2x"
src="https://github.com/user-attachments/assets/d9326fac-020d-4ce7-9ced-0c185468c8fc"
/>


Fixes
https://linear.app/chatwoot/issue/CW-6560/widget-is-not-loading-from-iosandroid-widgets

How to test

1. Go to Settings → Inboxes → (Web Widget) → Configuration
2. Set allowed_domains to a specific domain (e.g., *.example.com)
3. Try loading the widget in a mobile app WebView — it should be blocked
4. Enable "Enable widget in mobile apps" checkbox
5. Reload the widget in the WebView — it should now load successfully
6. Verify the widget on a website not in the allowed domains list is
still blocked

---------

Co-authored-by: iamsivin <iamsivin@gmail.com>
2026-03-17 14:29:41 +04:00
..
advancedFilters.json feat(v4): Add new conversation filters component (#10502) 2024-11-27 20:05:54 -08:00
agentBots.json feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
agentMgmt.json feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
attributesMgmt.json feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
auditLogs.json feat: Add conversation delete feature (#11677) 2025-06-05 15:53:17 -05:00
automation.json feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
bulkActions.json feat: Conversation workflows(EE) (#13040) 2026-01-27 11:36:20 +04:00
campaign.json feat: WhatsApp campaigns (#11910) 2025-07-16 09:04:02 +05:30
cannedMgmt.json feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
chatlist.json feat: Add a priority + created at sort for conversations (#13658) 2026-02-25 18:22:41 -08:00
companies.json feat: Add sorting by contacts count to companies list (#13012) 2026-01-09 15:20:08 -08:00
components.json chore: Improve pagination with compact number formatting and pluralization (#12962) 2025-11-27 10:32:34 +05:30
contact.json feat: compose form improvements (#13668) 2026-03-02 18:27:51 +05:30
contactFilters.json feat: Ability to filter contact based on labels (#12343) 2025-09-02 12:35:18 +05:30
contentTemplates.json feat: Add call-to-action template support for Twilio (#13179) 2026-01-06 10:38:36 +04:00
conversation.json chore: Disable API channel reply editor outside 24h window (#13664) 2026-02-26 16:05:05 +05:30
csatMgmt.json feat: more CSAT filters (#7038) 2023-05-18 22:50:46 +05:30
customRole.json feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
datePicker.json feat: Refactor reports filters (#13443) 2026-02-06 18:22:30 +05:30
emoji.json feat: Adds the ability to set an emoji for help center category (#8111) 2023-10-20 13:52:30 +05:30
general.json feat: Conversation workflows(EE) (#13040) 2026-01-27 11:36:20 +04:00
generalSettings.json feat: Add natural language date parser for snooze functionality (#13587) 2026-03-06 12:20:22 +04:00
helpCenter.json feat: Add draft status for help center locales (#13768) 2026-03-17 12:45:54 +04:00
inbox.json feat: add reauth flow for wa embedded signup (#11940) 2025-08-08 01:48:45 +05:30
inboxMgmt.json feat(widget): Allow widget loading in mobile app WebViews when domain restrictions are set (#13763) 2026-03-17 14:29:41 +04:00
index.js feat: Add natural language date parser for snooze functionality (#13587) 2026-03-06 12:20:22 +04:00
integrationApps.json feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
integrations.json feat: add per-webhook secret with backfill migration (#13573) 2026-02-26 17:26:12 +05:30
labelsMgmt.json feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
login.json feat: Form validation message for password input (#11705) 2025-09-29 11:12:04 +05:30
macros.json feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
mfa.json feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
report.json feat: Refactor reports filters (#13443) 2026-02-06 18:22:30 +05:30
resetPassword.json feat: Support dark mode in login pages (#7420) 2023-07-01 07:49:52 +05:30
search.json feat: Advanced Search Backend (#12917) 2026-01-07 15:30:49 +05:30
setNewPassword.json feat: update product copy [CWM-45] (#6372) 2023-04-25 22:02:15 -07:00
settings.json fix: V2 Assignment service enhancements (#13036) 2026-02-11 12:24:45 +05:30
signup.json chore: Improve signup flow, reduce the number of inputs (#13350) 2026-01-22 18:47:42 -08:00
sla.json feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
snooze.json feat: Add natural language date parser for snooze functionality (#13587) 2026-03-06 12:20:22 +04:00
teamsSettings.json feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
webhooks.json Feature: As a admin, I should be able to add webhooks to account (#572) 2020-02-29 17:43:49 +05:30
whatsappTemplates.json feat: Add media_name support for WhatsApp templates document files (#12462) 2025-09-18 15:25:31 +05:30
yearInReview.json feat(ce): Add Year in review feature (#13078) 2025-12-15 17:24:45 -08:00