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