Skip to content

Commit

Permalink
Use URL helper to remove auth from url (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Jan 24, 2025
1 parent 977a9f0 commit c44d50b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion resources/js/components/Listing/Listing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit c44d50b

Please sign in to comment.