Skip to content

Commit 8d3f30f

Browse files
committed
CORS on plus api
1 parent 1383c26 commit 8d3f30f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • nixos/hosts/vps/config/services/caddy

nixos/hosts/vps/config/services/caddy/Caddyfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ https://*.polyfrost.org {
153153
}
154154

155155
handle @plus-staging {
156+
header Access-Control-Allow-Origin "*"
157+
header Access-Control-Allow-Headers "GET, POST, PUT, PATCH, DELETE, OPTIONS"
156158
reverse_proxy plus.containers:8080 {
157159
header_up X-Real-IP {client_ip}
158160
}

0 commit comments

Comments
 (0)