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
internal_redirect_spec.rb Enforces terms in the web application 2018-05-04 13:54:43 +02:00
issuable_collections_spec.rb
lfs_request_spec.rb
send_file_upload_spec.rb Fix cross-origin errors when attempting to download JavaScript attachments 2018-05-13 21:49:51 -07:00