gitlab-org--gitlab-foss/changelogs/unreleased/sh-fix-cross-site-origin-uploads-js.yml
Stan Hu 0c43170630 Fix cross-origin errors when attempting to download JavaScript attachments
If you upload a file with a .js extension, Rails' cross-origin JavaScript
protection will prevent a user from downloading the file with a 422 error.
Setting the content-type to `text/plain` will allow the user to download
the file as a plaintext file.

Closes #45826
2018-05-13 21:49:51 -07:00

5 lines
121 B
YAML

---
title: Fix cross-origin errors when attempting to download JavaScript attachments
merge_request:
author:
type: fixed