-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
P2Priority 2: Important, fix when possiblePriority 2: Important, fix when possiblewidgetRelated to frontend widgetRelated to frontend widgetwontfixThis will not be worked onThis will not be worked on
Description
Source of the issue:
<script src="https://osa-demo.pages.dev/osa-chat-widget.js"
crossorigin="anonymous"></script>
Copilot comment:
This injects a third-party chat widget script from an external domain into all doc pages. That has security/privacy and operational implications (supply-chain risk, potential data exfiltration via allowPageContext, outages breaking page load). Consider pinning to a versioned URL and adding SRI (integrity) + defer, documenting what data is sent, and/or gating the widget behind an explicit user opt-in or a build-time flag for official docs.
For your consideration. For now, I am trying the defer option on the static sites and copying on our server pages.
<script src="https://osa-demo.pages.dev/osa-chat-widget.js"
crossorigin="anonymous"
defer></script>
<script defer>
// Initialize widget after script loads (defer ensures non-blocking)
if (window.OSAChatWidget) {
OSAChatWidget.setConfig({.....
</script>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Priority 2: Important, fix when possiblePriority 2: Important, fix when possiblewidgetRelated to frontend widgetRelated to frontend widgetwontfixThis will not be worked onThis will not be worked on