Implement CORS #183

Merged
quentin merged 2 commits from bucket-cors into main 10 months ago
lx commented 11 months ago
Owner

Fixes #138

  • Add CORS configuration to Bucket model
  • Implement {Put,Get,Delete}BucketCors
  • Return CORS headers in web
  • Support the OPTIONS method in api
  • Return CORS headers in api
  • fix documentation
Fixes #138 - [x] Add CORS configuration to Bucket model - [x] Implement {Put,Get,Delete}BucketCors - [x] Return CORS headers in `web` - [x] Support the OPTIONS method in `api` - [x] Return CORS headers in `api` - [x] fix documentation
lx force-pushed bucket-cors from 05cb5b0c8b to 4f091f3f2c 11 months ago
lx added the
S3 Compatibility
label 11 months ago
lx force-pushed bucket-cors from 4f091f3f2c to 9950ab92e3 11 months ago
lx force-pushed bucket-cors from 9950ab92e3 to 68bd118266 11 months ago
lx force-pushed bucket-cors from 68bd118266 to efd153b034 11 months ago
lx force-pushed bucket-cors from efd153b034 to 013e37e5d2 11 months ago
lx force-pushed bucket-cors from 013e37e5d2 to 28bc685e52 11 months ago
lx force-pushed bucket-cors from 28bc685e52 to bb8c2d4bc0 11 months ago
lx force-pushed bucket-cors from bb8c2d4bc0 to 4b00b95734 11 months ago
lx force-pushed bucket-cors from 4b00b95734 to c7cc1403e9 11 months ago
Owner

GetBucketCors does not work on my machine, it returns an empty response:

$ aws s3api put-bucket-cors --bucket peertube-playlist --cors-configuration '{"CORSRules":[{"AllowedHeaders":["*"],"AllowedMethods":["GET"],"AllowedOrigins":["*"],"ExposeHeaders":[]}]}'

$ aws s3api get-bucket-cors --bucket peertube-playlist
GetBucketCors does not work on my machine, it returns an empty response: ``` $ aws s3api put-bucket-cors --bucket peertube-playlist --cors-configuration '{"CORSRules":[{"AllowedHeaders":["*"],"AllowedMethods":["GET"],"AllowedOrigins":["*"],"ExposeHeaders":[]}]}' $ aws s3api get-bucket-cors --bucket peertube-playlist ```
lx force-pushed bucket-cors from c7cc1403e9 to bed3106c6a 11 months ago
trinity-1686a added a new dependency 11 months ago
trinity-1686a removed a dependency 11 months ago
lx added 4 commits 11 months ago
b45dcc1925 Support STREAMING-AWS4-HMAC-SHA256-PAYLOAD (#64) (#156)
fdcddbe168 Fix Multipart Upload with WinSCP (#164) (#193)
7c049f1c94 Fix extreme value to be less extreme so that integration test works on 32bits
178e35f868 refactor s3_router and api_server to make unused Endpoint parameters more obvious
lx changed target branch from improve-website-config to main 11 months ago
lx changed title from Implement CORS on website endpoint to Implement CORS 11 months ago
lx force-pushed bucket-cors from 02b706a923 to 47c37153a6 11 months ago
lx force-pushed bucket-cors from 47c37153a6 to 934d076844 11 months ago
lx force-pushed bucket-cors from 934d076844 to ea7fb901eb 10 months ago
lx force-pushed bucket-cors from 848b05add4 to 513a6b15f9 10 months ago
quentin merged commit 513a6b15f9 into main 10 months ago
quentin deleted branch bucket-cors 10 months ago
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
The pull request has been merged as 513a6b15f9.
Sign in to join this conversation.
Loading…
There is no content yet.