Skip to content

Commit 99b2a16

Browse files
committed
enable CORS for static fileserver
1 parent a55faf3 commit 99b2a16

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

Caddyfile

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
osm-downloads.protomaps.com {
2-
root * /mnt/www
3-
reverse_proxy /api/* localhost:8080
1+
slice.protomaps.dev {
2+
root * /mnt/www
3+
4+
handle /api/* {
5+
reverse_proxy localhost:8080
6+
}
7+
8+
handle {
9+
header {
10+
Access-Control-Allow-Origin "*"
11+
}
412
file_server
13+
}
514
}

0 commit comments

Comments
 (0)