Skip to content

document CSP, the engine, and what authorize and skipSelectors really do - #4

Merged
arnelirobles merged 1 commit into
mainfrom
docs/csp-and-gaps
Oct 9, 2026
Merged

arnelirobles merged 1 commit into
mainfrom
docs/csp-and-gaps

Conversation

@arnelirobles

@arnelirobles arnelirobles commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Docs only. Fills the gaps found while checking read-aloud against the Edge TTS changes in digital-hub-ui (SCD-451).

Added: a Content Security Policy section (media-src 'self' blob:, plus style-src for the injected styles), using EdgeTTS directly, the endpoint's status codes, <read-aloud> attributes, downloadRecording, and troubleshooting.

Fixed two claims the code contradicts:

  • authorize gets the JSON body, not the request, so the old isSignedIn(req) example could not work. The README now shows wrapping the handler.
  • skipSelectors replaces the defaults and only skips highlighting. Skipped text is still read.

Checked against the live service: the new engine snippet returns MP3 and word timings, and an unknown voice fails with "connection closed before any audio" in 339 ms, as Troubleshooting says. npm run typecheck and npm run build pass.

Summary by CodeRabbit

  • Documentation
    • Clarified authorization behavior, endpoint response statuses, text limits, and optional word-boundary timings.
    • Added guidance for browser component attributes, controller access, audio and object-URL getters, and downloading recordings.
    • Explained that skipped text is still read aloud, and documented direct text-to-speech use, cancellation, content security policy requirements, and troubleshooting.

@coderabbitai

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fbb41051-088d-4fb0-aa32-11f449613e5e
📥 Commits

Reviewing files that changed from the base of the PR and between 2a699f0 and 96c0f1b.

📒 Files selected for processing (1)
  • README.md
 ___________________________________
< Tom & Jerry level of bug chasing. >
 -----------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@arnelirobles
arnelirobles merged commit 78cb3bd into main Oct 9, 2026
2 of 3 checks passed
@arnelirobles
arnelirobles deleted the docs/csp-and-gaps branch October 9, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant