Skip to content

Commit c500f88

Browse files
fix: update Vite proxy test helper header from WebApp to UiBundle
startViteProxyServer was sending X-Salesforce-WebApp-Proxy but dev.ts checks X-Salesforce-UiBundle-Proxy, causing the Vite proxy detection NUT to always fail. Made-with: Cursor
1 parent 0068ce1 commit c500f88

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/commands/ui-bundle/helpers/devServerUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export function startTestHttpServer(port: number): Promise<HttpServer> {
179179
/**
180180
* Start an HTTP server that mimics a Vite dev server with the
181181
* WebAppProxyHandler plugin active. Responds to health check requests
182-
* (`?sfProxyHealthCheck=true`) with `X-Salesforce-WebApp-Proxy: true`.
182+
* (`?sfProxyHealthCheck=true`) with `X-Salesforce-UiBundle-Proxy: true`.
183183
*/
184184
export function startViteProxyServer(port: number): Promise<HttpServer> {
185185
return new Promise((resolve, reject) => {
@@ -188,7 +188,7 @@ export function startViteProxyServer(port: number): Promise<HttpServer> {
188188
if (url.searchParams.get('sfProxyHealthCheck') === 'true') {
189189
res.writeHead(200, {
190190
'Content-Type': 'text/plain',
191-
'X-Salesforce-WebApp-Proxy': 'true',
191+
'X-Salesforce-UiBundle-Proxy': 'true',
192192
});
193193
res.end('OK');
194194
return;

0 commit comments

Comments
 (0)