Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions packages/trackkit/src/dispatcher/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ export interface Transport {
* target known analytics domains or third-party scripts.
*
* Server contract (recommended):
* POST {proxyUrl}
* Headers:
* Content-Type: application/json
* Authorization: Bearer <token> (optional)
* X-Trackkit-Target: <provider URL> (required)
* Body: { payload: any }
*
* ```http
* POST {proxyUrl}
* Headers:
* Content-Type: application/json
* Authorization: Bearer <token> (optional)
* X-Trackkit-Target: <provider URL> (required)
* Body: { "payload": any }
* ```
*
* The server should validate the target against an allowlist and forward the
* JSON payload to that URL, returning the provider response status.
Expand Down