From 28f846e96987c9442972c8613470ef9734702722 Mon Sep 17 00:00:00 2001 From: juliangiebel Date: Wed, 24 Apr 2024 23:39:49 +0200 Subject: [PATCH] Add cors config to caddy example --- docs/Writerside/topics/Quickstart.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/Writerside/topics/Quickstart.md b/docs/Writerside/topics/Quickstart.md index fe05468..94295d1 100644 --- a/docs/Writerside/topics/Quickstart.md +++ b/docs/Writerside/topics/Quickstart.md @@ -86,6 +86,13 @@ The official map renderer instance is using [Caddy](https://caddyserver.com/) ### Example Caddy configuration ```` +(cors) { + @origin{args.0} header Origin {args.0} + header @origin{args.0} Access-Control-Allow-Origin "{args.0}" + header @origin{args.0} Access-Control-Allow-Headers "content-type, x-requested-with" + header @origin{args.0} Vary Origin +} + mapserver.tanukij.dev { encode zstd gzip reverse_proxy 127.0.0.1:8956