Skip to content

Viewer HTML served without Content-Security-Policy headers #44

Closed

Description

@rohitg00

Problem

A CSP constant is defined in api.ts for the viewer, but the actual viewer server in viewer/server.ts serves HTML without CSP headers.

Locations

  • src/triggers/api.ts:18-19 — defines CSP
  • src/viewer/server.ts:423-424 — serves HTML without CSP

Suggested Fix

Add CSP headers to the viewer server's HTML response.

Activity

  1. added
    securitySecurity vulnerability or hardening
    lowLow priority
    on Mar 4, 2026
  2. rohitg00 commented on Mar 4, 2026

    @rohitg00
    OwnerAuthor

    Fixed in PR #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    lowLow prioritysecuritySecurity vulnerability or hardening

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions