Ivan Okhotnikov
be8f6b4739
fix(dashboard): set webOrigins to "+" and add --api-route for k8s API paths
...
Two related issues caused the dashboard SPA to break with CORS errors
after the kc-access cookie expired:
1. KeycloakClient for dashboard had no webOrigins set, so the operator
never touched the field in Keycloak after initial creation. After
any rootUrl change the existing webOrigins value became stale and
blocked CORS from the SPA. Setting "+" tells Keycloak to derive
allowed origins from redirectUris.
2. oauth2-proxy returned 302 -> Keycloak /auth for unauthenticated
XHR/fetch on /api and /apis. The login page does not emit
Access-Control-Allow-Origin, so the SPA's fetch failed with CORS.
--api-route makes oauth2-proxy answer 401 without redirect, so the
SPA can handle the re-auth itself via top-level navigation.
Signed-off-by: Ivan Okhotnikov <ivan.okhotnikov@aenix.io >
2026-06-02 21:05:15 +03:00
..
2026-05-21 15:23:18 +05:00
2026-05-28 13:49:59 +04:00
2026-03-25 15:57:25 +05:00
2026-05-28 13:49:59 +04:00
2026-03-03 19:32:32 +03:00
2026-05-21 12:57:02 +05:00
2026-05-21 12:57:02 +05:00
2026-05-21 12:57:02 +05:00
2026-05-21 12:57:02 +05:00
2026-05-03 20:49:47 +05:00
2026-05-03 20:49:47 +05:00
2026-05-26 14:18:22 +05:00
2026-05-26 10:29:30 +03:00
2026-05-29 11:07:19 +03:00
2026-05-28 13:49:59 +04:00
2026-02-14 11:42:52 +01:00
2026-02-10 22:47:20 +05:00
2026-05-07 16:45:36 +03:00
2026-04-28 11:14:27 +02:00
2026-05-26 10:29:30 +03:00
2026-05-28 12:46:57 +05:00
2026-05-26 10:29:30 +03:00
2026-04-13 17:15:09 +03:00
2026-06-02 21:05:15 +03:00
2026-05-22 14:35:08 +04:00
2026-05-22 14:35:08 +04:00
2026-03-10 12:48:01 +01:00
2026-05-25 19:11:52 +03:00
2026-05-25 17:45:44 +05:00
2026-05-31 19:04:20 +05:00
2026-05-31 19:04:20 +05:00
2026-05-31 15:02:12 +05:00
2026-05-25 17:07:02 +03:00
2026-06-02 14:34:02 +03:00
2026-05-26 15:47:56 +05:00
2026-04-29 11:14:41 +03:00
2026-04-30 16:40:26 +05:00
2026-05-26 23:51:11 +03:00
2026-04-23 16:57:23 +05:00
2026-05-26 23:51:11 +03:00
2026-03-02 12:35:14 +05:00
2026-05-11 21:08:41 +03:00
2026-05-27 11:16:42 +03:00
2026-05-21 15:23:18 +05:00
2026-05-25 17:07:02 +03:00
2026-05-12 13:13:19 +05:00
2026-05-21 15:23:18 +05:00
2026-05-21 15:23:18 +05:00
2026-04-21 20:09:19 +02:00
2026-05-21 15:23:18 +05:00
2026-05-21 15:23:18 +05:00
2026-05-26 23:51:11 +03:00
2026-05-14 16:49:00 +03:00
2026-05-25 17:07:02 +03:00
2026-05-25 17:07:02 +03:00
2026-05-25 11:54:45 +05:00
2026-05-13 21:48:39 +00:00
2026-06-01 18:51:29 +05:00
2026-05-04 20:38:44 +02:00
2026-05-21 15:23:18 +05:00
2026-05-26 14:18:22 +05:00
2026-05-21 15:23:18 +05:00
2026-04-13 17:15:09 +03:00
2026-02-10 20:19:03 +01:00
2026-05-26 23:51:11 +03:00
2026-06-01 18:34:12 +03:00
2026-01-20 03:24:32 +01:00
2026-05-26 23:51:11 +03:00
2026-05-26 10:29:30 +03:00
2026-04-28 11:21:12 +03:00
2026-03-25 15:57:25 +05:00
2026-05-21 15:23:18 +05:00
2026-02-17 22:54:12 +01:00
2026-05-27 11:19:44 +03:00
2026-05-21 15:23:18 +05:00
2026-02-17 20:03:01 +03:00
2026-05-26 23:51:11 +03:00
2026-01-20 03:24:32 +01:00
2026-05-20 15:45:08 +05:00
2026-05-26 23:51:11 +03:00
2026-05-11 02:20:34 +03:00
2026-03-25 16:11:14 +03:00
2026-02-11 22:54:56 +01:00
2026-04-24 13:33:07 +03:00
2026-05-29 11:29:58 +03:00
2026-02-06 13:30:58 +03:00
2026-05-27 11:20:25 +03:00
2026-05-26 23:51:11 +03:00
2026-05-21 15:23:18 +05:00
2026-05-26 23:51:11 +03:00
2026-05-28 12:46:56 +05:00
2026-05-31 15:02:33 +05:00
2026-05-11 21:08:41 +03:00
2026-05-11 21:08:41 +03:00
2026-05-28 12:46:57 +05:00
2026-05-28 13:49:59 +04:00
2026-05-28 12:43:50 +05:00
2026-04-20 15:48:53 +03:00
2026-03-25 15:59:22 +05:00
2026-04-14 19:59:20 +05:00
2026-05-26 23:51:11 +03:00
2026-06-01 18:51:29 +05:00
2026-05-11 21:08:41 +03:00