From 669bf80527b4251ff327422451d2922670e66e6d Mon Sep 17 00:00:00 2001 From: Jade Geels Date: Thu, 23 Jan 2025 14:40:05 +0100 Subject: [PATCH] Use URL helper to remove auth from url --- resources/js/components/Listing/Listing.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/js/components/Listing/Listing.vue b/resources/js/components/Listing/Listing.vue index 61e3e1e9..6a2cf609 100644 --- a/resources/js/components/Listing/Listing.vue +++ b/resources/js/components/Listing/Listing.vue @@ -76,9 +76,15 @@ export default { }, searchkit: function () { + let url = new URL(config.es_url) + let searchkit = new Searchkit({ connection: { - host: config.es_url, + host: url.origin, + auth: { + username: url.username, + password: url.password, + } }, search_settings: { // Are we using this? In the autocomplete maybe?