Skip to content

Commit 52f86fa

Browse files
Copilotsensslen
andcommitted
Add comment explaining http protocol allowance for local networks
Co-authored-by: sensslen <3428860+sensslen@users.noreply.github.com>
1 parent cb574fb commit 52f86fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/MessageItem.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ const MessageItem: React.FC<MessageItemProps> = ({ message, onShowMessage, onHid
3939
const sanitizedMessage = DOMPurify.sanitize(message, {
4040
ALLOWED_TAGS: ['b', 'i', 'em', 'strong', 'u', 'br', 'p', 'span', 'a'],
4141
ALLOWED_ATTR: ['href', 'class'],
42-
// Restrict href to safe protocols only (http, https, mailto)
42+
// Restrict href to safe protocols only
43+
// Note: http is included for compatibility with ProPresenter instances on local networks
4344
ALLOWED_URI_REGEXP: /^(?:https?|mailto):/i
4445
});
4546

0 commit comments

Comments
 (0)