examples: modify spa to allow cookie fallback on other endpoints

This commit is contained in:
WeebDataHoarder
2025-04-28 17:30:23 +02:00
parent 6db839e23f
commit 62277aac64

View File

@@ -57,7 +57,7 @@ rules:
conditions:
- 'path == "/" || path == "/index.html"'
settings:
challenges: [ preload-link, meta-refresh, resource-load, js-pow-sha256 ]
challenges: [ preload-link, header-refresh ]
action: challenge
# Allow PUT/DELETE/PATCH/POST requests in general
@@ -71,7 +71,11 @@ rules:
- name: standard-browser
action: challenge
settings:
challenges: [ preload-link, meta-refresh, resource-load, js-pow-sha256 ]
challenges: [ preload-link, header-refresh ]
# Fallback on cookie challenge
fail: challenge
fail-settings:
challenges: [ cookie ]
conditions:
- '($is-generic-browser)'