gitlab-org--gitlab-foss/spec/controllers/concerns
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
..
checks_collaboration_spec.rb Share collaboration check between view and presenter 2018-04-11 10:51:15 +02:00
continue_params_spec.rb Reuses `InternalRedirect` when possible 2018-05-04 13:54:43 +02:00
controller_with_cross_project_access_check_spec.rb Port `read_cross_project` ability from EE 2018-02-22 17:11:36 +01:00
group_tree_spec.rb Only expand ancestors when searching 2017-10-09 12:02:40 +02:00
internal_redirect_spec.rb Enforces terms in the web application 2018-05-04 13:54:43 +02:00
issuable_collections_spec.rb Refactor IssuableFinder to extract model-specific logic 2018-02-21 10:31:29 +00:00
lfs_request_spec.rb Find the LFS-objects for a fork within a the fork network 2017-11-03 14:59:47 +01:00
send_file_upload_spec.rb Fix cross-origin errors when attempting to download JavaScript attachments 2018-05-13 21:49:51 -07:00