From 1983f7705f3d4f99e753601eb154bfbfe56e0eac Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 26 Apr 2025 04:08:56 -0400 Subject: [PATCH] enhance CSP for iframe and refactor gallery view event handlers --- CHANGELOG.md | 20 ++-- Dockerfile | 2 +- public/js/fileListView.js | 142 +++++++++++++----------- src/controllers/folderController.php | 157 ++++++++++++++------------- 4 files changed, 178 insertions(+), 143 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21eda79..9ccfc75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,30 +1,30 @@ # Changelog -## Changes 4/26/2025 +## Changes 4/26/2025 1.2.6 -### 1. Apache / Dockerfile (CSP) +**Apache / Dockerfile (CSP)** - Enabled Apache’s `mod_headers` in the Dockerfile (`a2enmod headers ssl deflate expires proxy proxy_fcgi rewrite`) - Added a strong `Content-Security-Policy` header in the vhost configs to lock down allowed sources for scripts, styles, fonts, images, and connections -### 2. index.html & CDN Includes +**index.html & CDN Includes** - Applied Subresource Integrity (`integrity` + `crossorigin="anonymous"`) to all static CDN assets (Bootstrap CSS, CodeMirror CSS/JS, Resumable.js, DOMPurify, Fuse.js) - Omitted SRI on Google Fonts & Material Icons links (dynamic per-browser CSS) - Removed all inline `