Implement CORS #183

Merged
quentin merged 2 commits from bucket-cors into main 2022-01-24 17:04:07 +00:00
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 2022-01-07 16:16:31 +00:00 Compare
lx added the
scope
s3-api
label 2022-01-10 11:31:40 +00:00
lx force-pushed bucket-cors from 4f091f3f2c to 9950ab92e3 2022-01-10 13:18:27 +00:00 Compare
lx force-pushed bucket-cors from 9950ab92e3 to 68bd118266 2022-01-10 13:59:28 +00:00 Compare
lx force-pushed bucket-cors from 68bd118266 to efd153b034 2022-01-10 14:01:46 +00:00 Compare
lx force-pushed bucket-cors from efd153b034 to 013e37e5d2 2022-01-10 15:38:31 +00:00 Compare
lx force-pushed bucket-cors from 013e37e5d2 to 28bc685e52 2022-01-13 12:42:36 +00:00 Compare
lx force-pushed bucket-cors from 28bc685e52 to bb8c2d4bc0 2022-01-13 13:27:41 +00:00 Compare
lx force-pushed bucket-cors from bb8c2d4bc0 to 4b00b95734 2022-01-13 13:29:32 +00:00 Compare
lx force-pushed bucket-cors from 4b00b95734 to c7cc1403e9 2022-01-13 13:30:13 +00:00 Compare
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 2022-01-13 16:27:26 +00:00 Compare
trinity-1686a added a new dependency 2022-01-14 23:55:55 +00:00
trinity-1686a removed a dependency 2022-01-17 14:53:43 +00:00
lx added 4 commits 2022-01-17 15:13:35 +00:00
Support STREAMING-AWS4-HMAC-SHA256-PAYLOAD (#64) (#156)
All checks were successful
continuous-integration/drone/push Build is passing
b45dcc1925
Closes #64.

Reviewed-on: #156
Co-authored-by: Jill <kokakiwi@deuxfleurs.fr>
Co-committed-by: Jill <kokakiwi@deuxfleurs.fr>
Fix Multipart Upload with WinSCP (#164) (#193)
All checks were successful
continuous-integration/drone/push Build is passing
fdcddbe168
Closes #164.

Reviewed-on: #193
Co-authored-by: Jill <kokakiwi@deuxfleurs.fr>
Co-committed-by: Jill <kokakiwi@deuxfleurs.fr>
Fix extreme value to be less extreme so that integration test works on 32bits
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
7c049f1c94
refactor s3_router and api_server to make unused Endpoint parameters more obvious
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
178e35f868
lx changed target branch from improve-website-config to main 2022-01-17 15:24:46 +00:00
lx changed title from Implement CORS on website endpoint to Implement CORS 2022-01-17 17:46:52 +00:00
lx force-pushed bucket-cors from 02b706a923 to 47c37153a6 2022-01-17 17:50:34 +00:00 Compare
lx force-pushed bucket-cors from 47c37153a6 to 934d076844 2022-01-17 17:57:23 +00:00 Compare
lx force-pushed bucket-cors from 934d076844 to ea7fb901eb 2022-01-24 10:58:07 +00:00 Compare
lx force-pushed bucket-cors from 848b05add4 to 513a6b15f9 2022-01-24 11:32:37 +00:00 Compare
quentin merged commit 513a6b15f9 into main 2022-01-24 17:04:07 +00:00
quentin deleted branch bucket-cors 2022-01-24 17:04:08 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/garage#183
No description provided.