From 171814f5515ecd3fa038a5f8c344dcaa7d4c1c62 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 4 May 2020 15:51:20 -0300 Subject: [PATCH] el origin viene sin / --- app/controllers/api/v1/contact_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/contact_controller.rb b/app/controllers/api/v1/contact_controller.rb index 321f7c3a..08493f37 100644 --- a/app/controllers/api/v1/contact_controller.rb +++ b/app/controllers/api/v1/contact_controller.rb @@ -47,7 +47,7 @@ module Api # Comprueba que el mensaje vino fue enviado desde el sitio def site_is_origin? - return if origin.to_s == site.url + return if site.url.start_with? origin.to_s render html: body(:site_is_origin), status: status end