action/context: add capability to set response headers

This commit is contained in:
WeebDataHoarder
2025-04-28 12:40:03 +02:00
parent 61655b6a02
commit e49c4ae72f
5 changed files with 29 additions and 4 deletions

View File

@@ -137,6 +137,19 @@ rules:
conditions:
- '!(method == "HEAD" || method == "GET")'
# Enable fetching OpenGraph and other tags from backend on these paths
- name: enable-meta-tags
action: context
settings:
context-set:
# Map OpenGraph or similar <meta> tags back to the reply, even if denied/challenged
proxy-meta-tags: "true"
# Set additional response headers
#response-headers:
# X-Clacks-Overhead:
# - GNU Terry Pratchett
- name: plaintext-browser
action: challenge
settings: