Into the chrome's developer tool networks, i see a PUT request for each chunk of the file uploaded to S3, but also a OPTIONS request for each PUT:
The broblem is the CORS.
Use caching?
don'works! because each PUT has a totally different URL
the only possible solution is send the request to the same domain on a specific path and reverse proxy to the bucket S3.
eg.:
On cloudfront set a reverse proxy example.com/my-bucket to my S3 bucket example.s3.eu-west-1.amazonaws.com and the cose become like this (see ReverseOn):
Describe the feature
I'm loading a file from my website frontend example.com to my S3 bucket example.s3.eu-west-1.amazonaws.com, with this code:
Into the chrome's developer tool networks, i see a PUT request for each chunk of the file uploaded to S3, but also a OPTIONS request for each PUT:
The broblem is the CORS.
Use caching? don'works! because each PUT has a totally different URL
the only possible solution is send the request to the same domain on a specific path and reverse proxy to the bucket S3.
eg.:
On cloudfront set a reverse proxy example.com/my-bucket to my S3 bucket example.s3.eu-west-1.amazonaws.com and the cose become like this (see ReverseOn):
Anyway for make this possible?
Use Case
This cors issue cause a performance degratation on large file
Proposed Solution
No response
Other Information
No response
Acknowledgements
SDK version used
3
Environment details (OS name and version, etc.)
Windows latest Chrome