Skip to content

Commit

Permalink
a couple of comments to clarify the format of CORS headers
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed May 4, 2021
1 parent 2437c12 commit ee820c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server/tinode.conf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
// File system location to store uploaded files. In case of a cluster it
// must be accessible by all cluster members, i.e. a network drive like https://www.samba.org/
"upload_dir": "uploads",
// Origin URLs allowed to download/upload files. Not necessary in most cases.
// Origin URLs allowed to download/upload files, e.g. ["https://www.example.com", "http://example.com"].
// Not necessary in most cases.
// "cors_origins": ["*"]
},
// Amazon AWS S3 storage.
Expand All @@ -85,8 +86,8 @@
"region": "s3 region, like us-east-2",
// Name of the S3 bucket.
"bucket": "your_s3_bucket_name",
// Origin URLs allowed to download files. See
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin
// Origin URLs allowed to download files, e.g. ["https://www.example.com", "http://example.com"].
// See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin
"cors_origins": ["*"]
}
}
Expand Down

0 comments on commit ee820c7

Please sign in to comment.