From 12e07e126cb1f14c7ab6aa40e4d1d52374d08cf2 Mon Sep 17 00:00:00 2001 From: dae won Date: Tue, 4 Aug 2026 13:27:23 +0900 Subject: [PATCH] [ZEPPELIN-6521] Preserve withCredentials on HTTP requests in production builds --- zeppelin-web-angular/src/app/app-http.interceptor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zeppelin-web-angular/src/app/app-http.interceptor.ts b/zeppelin-web-angular/src/app/app-http.interceptor.ts index b1e287622ac..6a6a4a18533 100644 --- a/zeppelin-web-angular/src/app/app-http.interceptor.ts +++ b/zeppelin-web-angular/src/app/app-http.interceptor.ts @@ -28,7 +28,7 @@ export class AppHttpInterceptor implements HttpInterceptor { intercept(httpRequest: HttpRequest, next: HttpHandler): Observable> { let httpRequestUpdated = httpRequest.clone({ withCredentials: true }); if (environment.production) { - httpRequestUpdated = httpRequest.clone({ setHeaders: { 'X-Requested-With': 'XMLHttpRequest' } }); + httpRequestUpdated = httpRequestUpdated.clone({ setHeaders: { 'X-Requested-With': 'XMLHttpRequest' } }); } return next.handle(httpRequestUpdated).pipe( map(event => {