You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tw...@apache.org on 2022/08/16 13:10:58 UTC
[flink] branch release-1.15 updated: [FLINK-28994][runtime-web] Enable withCredentials for outgoing HTTP requests
This is an automated email from the ASF dual-hosted git repository.
twalthr pushed a commit to branch release-1.15
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.15 by this push:
new 44c6496e954 [FLINK-28994][runtime-web] Enable withCredentials for outgoing HTTP requests
44c6496e954 is described below
commit 44c6496e95426a186dba7f775d3f65df3a00c979
Author: Ingo Bürk <ai...@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 <ai...@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 69c8ab1e035..6e45b61e1a8 100644
--- a/flink-runtime-web/web-dashboard/src/app/app.interceptor.ts
+++ b/flink-runtime-web/web-dashboard/src/app/app.interceptor.ts
@@ -34,7 +34,7 @@ export class AppInterceptor implements HttpInterceptor {
const ignoreErrorUrlEndsList = ['checkpoints/config', 'checkpoints'];
const ignoreErrorMessage = ['File not found.'];
- 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 (