Allow to use GET request instead of HEAD to avoid issues with Signged URL for AWS S3

Created on 6 April 2021, about 3 years ago
Updated 16 February 2024, 4 months ago

Problem/Motivation

When shared URL is hidden behind a proxy that redirects to actual AWS S3 private file with authorization token it may lead to an issue when URL after the redirect is not allowed to use HEAD method, for example: accessing "https://example.com/file/1234" creates a signed URL to AWS S3 but without respecting of the original request method and redirects you to "https://some-company.s3.amazonaws.com/file-12345.txt?security-token=..." and the problem is that final URL generated only for GET request by some proxy, so you can't access it with HEAD.

Proposed resolution

Add setting variable to allow switch between HEAD/GET:

Settings::get('file_link.http_request_method', 'HEAD')

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine zviryatko

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024