skip to Main Content

AWS S3 GET pre-signed url fails with CORS intermittently

I'm generating a pre-signed url using java for an image stored in s3 public String generateDownloadLink(String bucketName, String responseContentDisposition, String key, int days) { GetObjectRequest objectRequest = GetObjectRequest.builder() .bucket(bucketName) .responseContentDisposition(responseContentDisposition) .key(key).build(); GetObjectPresignRequest preSignRequest = GetObjectPresignRequest.builder() .signatureDuration(Duration.ofDays(days)) .getObjectRequest(objectRequest) .build(); PresignedGetObjectRequest presignedRequest…

VIEW QUESTION

Return a JSON response as CSV file from spring-boot controller

In my spring-boot project, I am fetching information from an external API in a JSON format. The response is represented as follows: { "id":237, "first_name":"LeBron", "last_name":"James", "position":"F", "height_feet": 6, "height_inches": 8, "weight_pounds": 250, "team":{ "id":14, "abbreviation":"LAL", "city":"Los Angeles", "conference":"West", "division":"Pacific",…

VIEW QUESTION
Back To Top
Search