Skip to content

Commit

Permalink
Fixed CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexy2 committed Aug 30, 2024
1 parent 20653da commit 12a1827
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions caddy/Caddyfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
debug
}

import *.tls.Caddyfile
import *.frontend.Caddyfile

Expand Down Expand Up @@ -27,9 +31,8 @@ www.{$SERVER_DOMAIN:orbitar.local} {
import tls

header X-Fingerprint "{$FINGERPRINT}"
header Access-Control-Expose-Headers "X-Fingerprint"

header Access-Control-Allow-Origin {$SERVER_HOST}
header Access-Control-Expose-Headers "X-Fingerprint, X-Session-Id"

@cors_preflight method OPTIONS
handle @cors_preflight {
Expand Down

0 comments on commit 12a1827

Please sign in to comment.