Skip to content

Commit

Permalink
cleanup: remove back to dashboard button + omit credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
skeptrunedev committed Dec 19, 2024
1 parent 81a4e7e commit 38b5afa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion clients/search-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion clients/ts-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"files": [
"dist"
],
"version": "0.0.45",
"version": "0.0.46",
"license": "MIT",
"scripts": {
"lint": "eslint 'src/**/*.ts'",
Expand Down
2 changes: 1 addition & 1 deletion clients/ts-sdk/src/fetch-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 0 additions & 7 deletions server/src/public/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,6 @@
%} {% include "search-component-code.html" %} {% endif %}
</div>
</main>
{% if logged_in %}
<a
class="dev-back-button"
href="{{dashboard_url}}/dataset/{{params.datasetId}}/public-page"
>Back To Dashboard</a
>
{% endif %}
</body>

<canvas id="canvas"></canvas>
Expand Down
2 changes: 2 additions & 0 deletions server/src/public/product.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ <h4 class="text-sm text-gray-500 mt-2 w-fit">
group_size: 1,
page_size: 8,
}),
credentials: "omit",
}
);
const recommendationsData = await recommendations.json();
Expand Down Expand Up @@ -200,6 +201,7 @@ <h6 class="rec-price mt-1 text-sm text-gray-700">${price}</h6>
Authorization: "Bearer " + window.paramsData.apiKey,
"TR-Dataset": window.paramsData.datasetId,
},
credentials: "omit",
}
);
const group = await getGroupByTrackingIdResp.json();
Expand Down

0 comments on commit 38b5afa

Please sign in to comment.