diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-16 21:08:11 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-16 21:08:11 +0000 |
commit | 19db7fd1fefc4e4249d4e55f409f321fdb85aed1 (patch) | |
tree | 0093c7fa3eb11954b49c828b78caae28f5fb97c2 /doc/administration/lfs | |
parent | 8fa0c53e26c947ac647b8067fde3e9673b77b1a6 (diff) | |
download | gitlab-ce-19db7fd1fefc4e4249d4e55f409f321fdb85aed1.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/administration/lfs')
-rw-r--r-- | doc/administration/lfs/index.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/administration/lfs/index.md b/doc/administration/lfs/index.md index 8fdc98bd12a..31ca71598c7 100644 --- a/doc/administration/lfs/index.md +++ b/doc/administration/lfs/index.md @@ -332,6 +332,28 @@ To check an installed Git LFS client's version, run this command: git lfs version ``` +## Error viewing a PDF file + +When LFS has been configured with object storage and `proxy_download` set to +`false`, [you may see an error when previewing a PDF file from the Web browser](https://gitlab.com/gitlab-org/gitlab/-/issues/248100): + +```plaintext +An error occurred while loading the file. Please try again later. +``` + +This occurs due to Cross-Origin Resource Sharing (CORS) restrictions: +the browser attempts to load the PDF from object storage, but the object +storage provider rejects the request since the GitLab domain differs +from the object storage domain. + +To fix this issue, configure your object storage provider's CORS +settings to allow the GitLab domain. See the following documentation +for more details: + +1. [AWS S3](https://aws.amazon.com/premiumsupport/knowledge-center/s3-configure-cors/) +1. [Google Cloud Storage](https://cloud.google.com/storage/docs/configuring-cors) +1. [Azure Storage](https://learn.microsoft.com/en-us/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services). + ## Known limitations - Only compatible with the Git LFS client versions 1.1.0 and later, or 1.0.2. |