about summary refs log tree commit diff
path: root/bundles/lhost/files/Caddyfile
diff options
context:
space:
mode:
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