Skip to content

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

@rohitg00

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.

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