fix(gateway): add CSP nonce for VNC viewer inline script/style#30
Merged
fix(gateway): add CSP nonce for VNC viewer inline script/style#30
Conversation
The CSP header added in #29 blocked the inline <script> and <style> tags in the VNC viewer HTML, causing a white screen. Generate a per-request cryptographic nonce and include it in both the CSP header (script-src/style-src) and the HTML tags (nonce="..."). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
zooqueen
pushed a commit
that referenced
this pull request
Mar 6, 2026
Creating AVAudioEngine at singleton init time causes macOS to switch Bluetooth headphones from A2DP (high quality) to HFP (headset) profile, resulting in degraded audio quality even when Voice Wake is disabled. This change makes audioEngine optional and only creates it when voice recognition actually starts, preventing the profile switch for users who don't use Voice Wake. Fixes #30 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<script>and<style>tags, causing a white screenrandomBytes(16)) and includes it in both the CSPscript-src/style-srcdirectives and the HTMLnonce="..."attributesstyle-srcfrom'unsafe-inline'to nonce-basedTest plan
🤖 Generated with Claude Code