fix: validate S3 browser download CORS
This commit is contained in:
11
docker/storage/cors.json
Normal file
11
docker/storage/cors.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"CORSRules": [
|
||||
{
|
||||
"AllowedOrigins": ["https://tp.workyai.cn"],
|
||||
"AllowedMethods": ["GET", "HEAD"],
|
||||
"AllowedHeaders": ["*"],
|
||||
"ExposeHeaders": ["Content-Disposition", "Content-Length", "Content-Type", "ETag"],
|
||||
"MaxAgeSeconds": 3600
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -25,7 +25,7 @@ server {
|
||||
access_log off;
|
||||
|
||||
location / {
|
||||
limit_except GET HEAD {
|
||||
limit_except GET HEAD OPTIONS {
|
||||
deny all;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user