@trillet-ai/web-sdk 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -30,8 +30,11 @@ export class TrilletAgent extends EventEmitter {
30
30
  'Content-Type': 'application/json',
31
31
  'Accept': 'application/json',
32
32
  'x-workspace-id': this.config.workspaceId,
33
- 'x-api-key': this.config.apiKey
33
+ 'x-api-key': this.config.apiKey,
34
+ 'Origin': window.location.origin
34
35
  },
36
+ mode: 'cors',
37
+ credentials: 'omit',
35
38
  body: JSON.stringify({
36
39
  call_agent_id: this.config.agentId,
37
40
  dynamic_variables: this.config.variables || {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trillet-ai/web-sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Trillet Web SDK for real-time audio communication with AI agents",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",