about summary refs log tree commit diff
path: root/bundles/lhost/files/Caddyfile
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2026-02-23 14:26:55 +0100
committerRobert Günzler <r@gnzler.io>2026-02-23 14:27:10 +0100
commitfe77c8fb1e8edfd802485dba0c1ffdc8e2005ea5 (patch)
tree44b39a1c5e7f7b9dcf3ddd30e7802a8b65e5c742 /bundles/lhost/files/Caddyfile
parent36fc6edc20b4f3f204f136de33a276934203929c (diff)
lhost: fix prune script
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bundles/lhost/files/Caddyfile')
-rw-r--r--bundles/lhost/files/Caddyfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/bundles/lhost/files/Caddyfile b/bundles/lhost/files/Caddyfile
index 497ef30..0e865a0 100644
--- a/bundles/lhost/files/Caddyfile
+++ b/bundles/lhost/files/Caddyfile
@@ -20,6 +20,17 @@ http:// {
 		}
 	}
 
+	# enable cors
+	header {
+		Access-Control-Allow-Headers *
+		Access-Control-Allow-Methods *
+		Access-Control-Allow-Origin *
+	}
+	@options {
+		method OPTIONS
+	}
+	respond @options 204
+
 	# catch all
 	respond 404