Skip to content

Commit 94b9fa3

Browse files
authored
Add TS request origin (#23)
1 parent f02f13d commit 94b9fa3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/query/agent.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export class QueryAgent {
7373
"Content-Type": "application/json",
7474
Authorization: bearerToken!,
7575
"X-Weaviate-Cluster-Url": host,
76+
"X-Agent-Request-Origin": "typescript-client",
7677
},
7778
body: JSON.stringify({
7879
headers,
@@ -134,6 +135,7 @@ export class QueryAgent {
134135
"Content-Type": "application/json",
135136
Authorization: bearerToken!,
136137
"X-Weaviate-Cluster-Url": host,
138+
"X-Agent-Request-Origin": "typescript-client",
137139
},
138140
body: JSON.stringify({
139141
headers,

0 commit comments

Comments
 (0)