Talisman fixes
All checks were successful
Build & Push / Build & Push image (push) Successful in 39s

This commit is contained in:
2026-03-01 00:08:59 +01:00
parent 42d20afb3b
commit 893c444000
10 changed files with 12 additions and 10 deletions

View File

@@ -103,7 +103,9 @@ def create_app():
} }
Talisman( Talisman(
app, app,
force_https=is_https, # HTTPS redirect hoort in nginx, NIET hier.
# Talisman zou anders redirecten naar het interne Docker adres (127.0.0.1:5000).
force_https=False,
strict_transport_security=is_https, strict_transport_security=is_https,
strict_transport_security_max_age=31536000, strict_transport_security_max_age=31536000,
strict_transport_security_include_subdomains=True, strict_transport_security_include_subdomains=True,

View File

@@ -322,7 +322,7 @@
<div class="notification" id="notification"></div> <div class="notification" id="notification"></div>
<script> <script nonce="{{ csp_nonce() }}">
document.addEventListener('DOMContentLoaded', async () => { document.addEventListener('DOMContentLoaded', async () => {
await loadStats(); await loadStats();
await loadSgIct(); await loadSgIct();

View File

@@ -348,7 +348,7 @@
<div class="notification" id="notification"></div> <div class="notification" id="notification"></div>
<script> <script nonce="{{ csp_nonce() }}">
let teachers = []; let teachers = [];
let allGoals = {}; let allGoals = {};
let vakData = {}; let vakData = {};

View File

@@ -192,7 +192,7 @@
</div> </div>
<div class="notification" id="notification"></div> <div class="notification" id="notification"></div>
<script> <script nonce="{{ csp_nonce() }}">
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
loadDoelen(); loadDoelen();
switchUploadTab('xlsx'); switchUploadTab('xlsx');

View File

@@ -351,7 +351,7 @@
<div class="notification" id="notification"></div> <div class="notification" id="notification"></div>
<script> <script nonce="{{ csp_nonce() }}">
// ── State ──────────────────────────────────────────────────────────────────── // ── State ────────────────────────────────────────────────────────────────────
let currentUser = null; let currentUser = null;
let currentVakId = null; let currentVakId = null;

View File

@@ -311,7 +311,7 @@
</div> </div>
</div> </div>
<script> <script nonce="{{ csp_nonce() }}">
let saVisible = false; let saVisible = false;
function toggleSuperadmin() { function toggleSuperadmin() {

View File

@@ -332,7 +332,7 @@
<div class="notification" id="notification"></div> <div class="notification" id="notification"></div>
<script> <script nonce="{{ csp_nonce() }}">
const IS_SUPERADMIN = {{ 'true' if is_superadmin else 'false' }}; const IS_SUPERADMIN = {{ 'true' if is_superadmin else 'false' }};
let schools = []; let schools = [];

View File

@@ -319,7 +319,7 @@
<div class="notification" id="notification"></div> <div class="notification" id="notification"></div>
<script> <script nonce="{{ csp_nonce() }}">
let mySchoolId = null; let mySchoolId = null;
const ROLLEN = [ const ROLLEN = [

View File

@@ -254,7 +254,7 @@
</form> </form>
</div> </div>
<script> <script nonce="{{ csp_nonce() }}">
document.getElementById('setupForm').addEventListener('submit', async (e) => { document.getElementById('setupForm').addEventListener('submit', async (e) => {
e.preventDefault(); e.preventDefault();
const errorEl = document.getElementById('error-msg'); const errorEl = document.getElementById('error-msg');

View File

@@ -243,7 +243,7 @@
<a href="/auth/login" class="back-link">← Terug naar normale loginpagina</a> <a href="/auth/login" class="back-link">← Terug naar normale loginpagina</a>
</div> </div>
<script> <script nonce="{{ csp_nonce() }}">
document.getElementById('password').addEventListener('keydown', e => { document.getElementById('password').addEventListener('keydown', e => {
if (e.key === 'Enter') doLogin(); if (e.key === 'Enter') doLogin();
}); });