martinklepsch / s3-beam

🚀 direct-to-S3 uploading using ClojureScript
Eclipse Public License 1.0
92 stars 17 forks source link

Send cookies to the signing endpoint. #50

Open deckeraa opened 4 years ago

deckeraa commented 4 years ago

A web app I am working on requires users to be authenticated before it will sign uploads to s3. The upload-signing endpoint uses cookie-based authentication.

Therefore, I propose sending cookies with the GET request to the signing endpoint.

I considered making it a configurable option to send cookies or not, but decided to have it always send cookies since users of this library control the server endpoint and will probably have their app SSL-secured in production.

Thanks, Aaron