Merge pull request #307 from Delivator/caddy-header-access-control-fix

Fixed caddy not exposing Access-Control-Expose-Headers (#306)
This commit is contained in:
Karol Wypchło 2020-07-27 18:14:14 +02:00 committed by GitHub
commit 2c22672960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -58,12 +58,12 @@
} }
reverse_proxy @skylink nginx:80 { reverse_proxy @skylink nginx:80 {
header_up User-Agent Sia-Agent header_up User-Agent Sia-Agent
header_up Access-Control-Expose-Headers skynet-file-metadata header_down Access-Control-Expose-Headers skynet-file-metadata
header_down Access-Control-Allow-Origin * header_down Access-Control-Allow-Origin *
} }
reverse_proxy @skylink_file nginx:80 { reverse_proxy @skylink_file nginx:80 {
header_up User-Agent Sia-Agent header_up User-Agent Sia-Agent
header_up Access-Control-Expose-Headers skynet-file-metadata header_down Access-Control-Expose-Headers skynet-file-metadata
header_down Access-Control-Allow-Origin * header_down Access-Control-Allow-Origin *
} }
reverse_proxy /skynet/skyfile* nginx:80 { reverse_proxy /skynet/skyfile* nginx:80 {