Skip to content

Copilot review flags third-party injection possibility #175

@VisLab

Description

@VisLab

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Priority 2: Important, fix when possiblewidgetRelated to frontend widgetwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions