Skip to content

Commit

Permalink
Add cors config to caddy example
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangiebel committed Apr 24, 2024
1 parent d46737a commit 28f846e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/Writerside/topics/Quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 28f846e

Please sign in to comment.