diff options
| author | Osmium Sorcerer <os@sof.beauty> | 2026-06-06 02:07:05 +0000 |
|---|---|---|
| committer | Osmium Sorcerer <os@sof.beauty> | 2026-06-06 03:09:27 +0000 |
| commit | e0ce108e0806d18353ad85125b2b5f1b1c67e07d (patch) | |
| tree | 4e70de464db82bf28d42b10bf260ba7361402f55 /webAO/dom/onOOCEnter.ts | |
| parent | fd75f3116aa30eb4958cc747f944f202ec69a484 (diff) | |
CSP hardening: remove inline scripts
The next layer after input validaton to achive the paranoid levels of
security. Remove all event handlers inside HTML attributes and add them
in TS for each element, allowing `script-src 'self'` to be used as a CSP
directive.
Buttons that passed some value and had a shared function went into
a global listener with data-action attribute, while all the individual
elements received their own event listener. This is a mess, but my goal
was to end up as close as I could to one-to-one translation of how
functions were originally attached to elements.
Diffstat (limited to 'webAO/dom/onOOCEnter.ts')
0 files changed, 0 insertions, 0 deletions
