0c43170630
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
5 lines
121 B
YAML
5 lines
121 B
YAML
---
|
|
title: Fix cross-origin errors when attempting to download JavaScript attachments
|
|
merge_request:
|
|
author:
|
|
type: fixed
|