examples: modify spa to allow cookie fallback on other endpoints
This commit is contained in:
@@ -57,7 +57,7 @@ rules:
|
|||||||
conditions:
|
conditions:
|
||||||
- 'path == "/" || path == "/index.html"'
|
- 'path == "/" || path == "/index.html"'
|
||||||
settings:
|
settings:
|
||||||
challenges: [ preload-link, meta-refresh, resource-load, js-pow-sha256 ]
|
challenges: [ preload-link, header-refresh ]
|
||||||
action: challenge
|
action: challenge
|
||||||
|
|
||||||
# Allow PUT/DELETE/PATCH/POST requests in general
|
# Allow PUT/DELETE/PATCH/POST requests in general
|
||||||
@@ -71,7 +71,11 @@ rules:
|
|||||||
- name: standard-browser
|
- name: standard-browser
|
||||||
action: challenge
|
action: challenge
|
||||||
settings:
|
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:
|
conditions:
|
||||||
- '($is-generic-browser)'
|
- '($is-generic-browser)'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user