2 Commits

Author SHA1 Message Date
0436d6e24a update app.py to provide nonce
All checks were successful
Docker Build and Publish / build (release) Successful in 6s
2025-01-31 18:41:44 -05:00
3e11c63e33 Fix admin page nonce
All checks were successful
Docker Build and Publish / build (release) Successful in 33s
2025-01-31 18:32:33 -05:00
2 changed files with 2 additions and 1 deletions

1
app.py
View File

@ -331,6 +331,7 @@ def admin():
photos=photos,
accent_color=config["appearance"]["accent_color"],
config=config,
nonce=g.csp_nonce,
)
@app.route("/admin/logout")

View File

@ -261,7 +261,7 @@
</div>
</div>
</div>
<script nonce="{{ g.csp_nonce }}">
<script nonce="{{ nonce }}">
function makeEditable(element) {
const value = element.textContent;
const input = document.createElement('input');