From 38b5afa11e4ce58a04d00e297487d26de122f86e Mon Sep 17 00:00:00 2001 From: skeptrune Date: Wed, 18 Dec 2024 17:37:51 -0800 Subject: [PATCH] cleanup: remove back to dashboard button + omit credentials --- clients/search-component/package.json | 2 +- clients/ts-sdk/package.json | 2 +- clients/ts-sdk/src/fetch-client.ts | 2 +- server/src/public/page.html | 7 ------- server/src/public/product.html | 2 ++ 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/clients/search-component/package.json b/clients/search-component/package.json index ad8652e69a..2dbd44e8a7 100644 --- a/clients/search-component/package.json +++ b/clients/search-component/package.json @@ -19,7 +19,7 @@ "import": "./dist/vanilla/index.js" } }, - "version": "0.2.30", + "version": "0.2.31", "license": "MIT", "homepage": "https://github.com/devflowinc/trieve/tree/main/clients/search-component", "scripts": { diff --git a/clients/ts-sdk/package.json b/clients/ts-sdk/package.json index 8a07aeeb70..809e10e642 100644 --- a/clients/ts-sdk/package.json +++ b/clients/ts-sdk/package.json @@ -6,7 +6,7 @@ "files": [ "dist" ], - "version": "0.0.45", + "version": "0.0.46", "license": "MIT", "scripts": { "lint": "eslint 'src/**/*.ts'", diff --git a/clients/ts-sdk/src/fetch-client.ts b/clients/ts-sdk/src/fetch-client.ts index e30b13bb00..f01de09522 100644 --- a/clients/ts-sdk/src/fetch-client.ts +++ b/clients/ts-sdk/src/fetch-client.ts @@ -166,7 +166,7 @@ export class TrieveFetchClient { } const response = await fetch(this.baseUrl + updatedPath, { - credentials: "include", + credentials: "omit", method, headers: headers, body: requestBody ? JSON.stringify(requestBody) : undefined, diff --git a/server/src/public/page.html b/server/src/public/page.html index 472e756a88..1c515d2fd3 100644 --- a/server/src/public/page.html +++ b/server/src/public/page.html @@ -312,13 +312,6 @@ %} {% include "search-component-code.html" %} {% endif %} - {% if logged_in %} - Back To Dashboard - {% endif %} diff --git a/server/src/public/product.html b/server/src/public/product.html index 5cd0588854..03559cbb37 100644 --- a/server/src/public/product.html +++ b/server/src/public/product.html @@ -112,6 +112,7 @@

group_size: 1, page_size: 8, }), + credentials: "omit", } ); const recommendationsData = await recommendations.json(); @@ -200,6 +201,7 @@

${price}
Authorization: "Bearer " + window.paramsData.apiKey, "TR-Dataset": window.paramsData.datasetId, }, + credentials: "omit", } ); const group = await getGroupByTrackingIdResp.json();