From 7dbe12ed66c851b3f3b3de5e9b4bd1d38c0aed26 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 17 May 2024 15:07:22 -0300 Subject: [PATCH] fix: no permitir que htmx haga peticiones fuera del panel --- app/javascript/packs/application.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/packs/application.js b/app/javascript/packs/application.js index e10e2b5d..c523b0f0 100644 --- a/app/javascript/packs/application.js +++ b/app/javascript/packs/application.js @@ -42,3 +42,4 @@ Turbolinks.start() ActiveStorage.start() window.htmx = require('htmx.org/dist/htmx.js') +window.htmx.config.selfRequestsOnly = true;