From 660db32c045f3ab6eda75e1e00602a0b27e65d9a Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Wed, 22 Nov 2023 17:37:41 +0000 Subject: [PATCH] Converts whitelist URLs to regular expressions --- spec/system/support/cuprite_setup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/support/cuprite_setup.rb b/spec/system/support/cuprite_setup.rb index 9d89e056345..8d20148feb7 100644 --- a/spec/system/support/cuprite_setup.rb +++ b/spec/system/support/cuprite_setup.rb @@ -15,7 +15,7 @@ process_timeout: 60, timeout: 60, # Don't load scripts from external sources, like google maps or stripe - url_whitelist: ["http://localhost", "http://0.0.0.0", "http://127.0.0.1"], + url_whitelist: [%r{http://localhost}i, %r{http://0.0.0.0}i, %r{http://127.0.0.1}], inspector: true, headless:, js_errors: true