gitlab-org--gitlab-foss/app
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
..
assets Resolve "Remove modal box confirmation when retrying a pipeline" 2018-05-11 14:03:27 +00:00
controllers Fix cross-origin errors when attempting to download JavaScript attachments 2018-05-13 21:49:51 -07:00
finders show only groups an admin is a member of in dashboards/grops 2018-05-01 09:24:21 +00:00
helpers Block access to API & git when terms are enforced 2018-05-10 17:02:27 +02:00
mailers Backport 5480-epic-notifications from EE 2018-05-07 12:58:47 -06:00
models Merge branch 'bvl-restrict-api-git-for-terms' into 'master' 2018-05-11 14:37:14 +00:00
policies Allows access_(git|api) to anonymous users 2018-05-10 17:02:27 +02:00
presenters Respect permissions when showing Failed Jobs 2018-05-06 18:46:00 +02:00
serializers Merge branch '43557-osw-present-merge-sha-commit' into 'master' 2018-05-07 22:17:55 +00:00
services Include project.full_path when moving repo 2018-05-10 16:24:57 +10:00
uploaders
validators
views Merge branch 'dz-add-2fa-filter' into 'master' 2018-05-11 10:54:04 +00:00
workers remove the Upload redefinition in MigrateUploadsWorker 2018-05-08 10:04:52 -04:00