diff options
Diffstat (limited to 'bundles/lhost/files/Caddyfile')
| -rw-r--r-- | bundles/lhost/files/Caddyfile | 11 |
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 |