The ensure_cors! function needs to be able to add CORS rules for the S3 bucket for 3 things now: * assets * direct S3 backups * direct S3 uploads As it is, only one rule can be applied, which is generally the assets rule as it is called first. This commit changes the ensure_cors! method to be able to apply new rules as well as the existing ones. Also in this commit we are calling ensure_cors! when creating presigned PUT and multipart uploads when uploading direct to S3, so the rules definitely exist to avoid errors in the process. |
||
|---|---|---|
| .. | ||
| backup_file_handler_multisite_spec.rb | ||
| backup_file_handler_spec.rb | ||
| backuper_spec.rb | ||
| database_restorer_multisite_spec.rb | ||
| database_restorer_spec.rb | ||
| local_backup_store_spec.rb | ||
| meta_data_handler_spec.rb | ||
| s3_backup_store_spec.rb | ||
| shared_context_for_backup_restore.rb | ||
| shared_examples_for_backup_store.rb | ||
| system_interface_multisite_spec.rb | ||
| system_interface_spec.rb | ||
| uploads_restorer_spec.rb | ||