fix(csp): allow external HTTPS images in Content-Security-Policy (#549)
* fix(csp): allow external HTTPS images in Content-Security-Policy Update img-src directive to include 'https:' allowing images from external services like Supabase Storage to load in GitHub issue previews. This enables automated pipelines (e.g., TestFlight feedback to GitHub issues) that host screenshots on external storage to display correctly within Auto Claude. Fixes image loading for: - Supabase Storage URLs - Any other HTTPS-hosted images in GitHub issues Before: img-src 'self' data: blob: After: img-src 'self' data: blob: https: * fix(csp): narrow img-src to specific trusted domains Per reviewer feedback, replaced blanket https: with explicit whitelist: - https://*.githubusercontent.com (GitHub images/avatars) - https://*.supabase.co (Supabase Storage for TestFlight feedback) This addresses security concerns while maintaining the use case. Co-authored-by: adryserage <adryserage@users.noreply.github.com> --------- Co-authored-by: adryserage <adryserage@users.noreply.github.com> Co-authored-by: Alex <63423455+AlexMadera@users.noreply.github.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self' https://fonts.googleapis.com https://fonts.gstatic.com; script-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: blob:" />
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self' https://fonts.googleapis.com https://fonts.gstatic.com; script-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: blob: https://*.githubusercontent.com https://*.supabase.co" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
||||
|
||||
Reference in New Issue
Block a user