From 09166964b5d2a5ea1cb9346ae8e202f8259457e1 Mon Sep 17 00:00:00 2001 From: Yohta Kimura Date: Tue, 12 Sep 2023 08:37:32 +0900 Subject: [PATCH] mention skip_ssrf_protection in README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 59b24386a..e0ff6f9d6 100644 --- a/README.md +++ b/README.md @@ -659,7 +659,7 @@ end ## Testing with CarrierWave It's a good idea to test your uploaders in isolation. In order to speed up your -tests, it's recommended to switch off processing in your tests, and to use the +tests, it's recommended to switch off processing in your tests, disable SSRF protection, and to use the file storage. In Rails you could do that by adding an initializer with: ```ruby @@ -667,6 +667,7 @@ if Rails.env.test? or Rails.env.cucumber? CarrierWave.configure do |config| config.storage = :file config.enable_processing = false + config.skip_ssrf_protection = true end end ```