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
continue_params_spec.rb Reuses `InternalRedirect` when possible 2018-05-04 13:54:43 +02:00
controller_with_cross_project_access_check_spec.rb
group_tree_spec.rb
internal_redirect_spec.rb
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