From e082671f53df29a0693857f0ece336a6ebbd634f Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Wed, 1 Apr 2026 08:22:17 -0700 Subject: [PATCH] Fix CSP-blocked inline handlers on SSO clients page script-src 'self' blocks onclick handlers and style-src blocks inline style attributes. Replace onclick with data-toggle-form attributes wired by mcias.js on DOMContentLoaded, and move inline styles to CSS utility classes. Co-Authored-By: Claude Opus 4.6 (1M context) --- web/static/mcias.js | 25 +++++++++++++++++++++++++ web/static/style.css | 5 +++++ web/templates/sso_clients.html | 15 +++++++++------ 3 files changed, 39 insertions(+), 6 deletions(-) diff --git a/web/static/mcias.js b/web/static/mcias.js index af5937d..7a6492f 100644 --- a/web/static/mcias.js +++ b/web/static/mcias.js @@ -15,6 +15,31 @@ document.body.addEventListener('htmx:responseError', function (evt) { banner.scrollIntoView({ behavior: 'instant', block: 'nearest' }); }); +// Toggle visibility of a create-form panel. The button text alternates +// between the given labels. Used by admin pages (accounts, policies, +// pgcreds, SSO clients) to show/hide the inline create form. +// +// Usage: +