Skip to content

Commit 65b140a

Browse files
committed
feat(cloud)!: send X-APIForge-Key instead of X-API-Key
Matches the saas-api header rename (CDC section 8.4.1). Breaking change for cloud mode users against a saas-api deployment that has also picked up its companion rename — both must ship together. Verified end-to-end: CloudTransport.writeRoutes() against a local saas-api test instance registers the route correctly with the new header. 82/82 tests still pass.
1 parent c6f2db2 commit 65b140a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cloud-transport.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class CloudTransport {
2121
if (routes.length === 0) return;
2222
fetch(`${this._url}/routes`, {
2323
method: 'POST',
24-
headers: { 'Content-Type': 'application/json', 'X-API-Key': this._apiKey },
24+
headers: { 'Content-Type': 'application/json', 'X-APIForge-Key': this._apiKey },
2525
body: JSON.stringify({
2626
routes: routes.map(r => ({ route: r.route, method: r.method, service: this._service })),
2727
}),
@@ -63,7 +63,7 @@ class CloudTransport {
6363

6464
fetch(this._url, {
6565
method: 'POST',
66-
headers: { 'Content-Type': 'application/json', 'X-API-Key': this._apiKey },
66+
headers: { 'Content-Type': 'application/json', 'X-APIForge-Key': this._apiKey },
6767
body: JSON.stringify({ metrics }),
6868
})
6969
.then(res => {

0 commit comments

Comments
 (0)