This is an automated email from the ASF dual-hosted git repository. twalthr pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push: new bd274ca8a1b [FLINK-28994][runtime-web] Enable withCredentials for outgoing HTTP requests bd274ca8a1b is described below commit bd274ca8a1b8249aa8a6a25514246ff79a89203b Author: Ingo Bürk <airbla...@apache.org> AuthorDate: Tue Aug 16 10:27:11 2022 +0200 [FLINK-28994][runtime-web] Enable withCredentials for outgoing HTTP requests Some environments require cookies to authenticate the Flink UI. By enabling the withCredentials flag, Angular will send cookies along with the request. Signed-off-by: Ingo Bürk <airbla...@apache.org> This closes #20593. --- flink-runtime-web/web-dashboard/src/app/app.interceptor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flink-runtime-web/web-dashboard/src/app/app.interceptor.ts b/flink-runtime-web/web-dashboard/src/app/app.interceptor.ts index 71eb0864216..92c86f94b46 100644 --- a/flink-runtime-web/web-dashboard/src/app/app.interceptor.ts +++ b/flink-runtime-web/web-dashboard/src/app/app.interceptor.ts @@ -37,7 +37,7 @@ export class AppInterceptor implements HttpInterceptor { nzStyle: { width: 'auto', 'white-space': 'pre-wrap' } }; - return next.handle(req).pipe( + return next.handle(req.clone({ withCredentials: true })).pipe( catchError(res => { const errorMessage = res && res.error && res.error.errors && res.error.errors[0]; if (