fix(dev): prevent dev frontend auth cache bleed

This commit is contained in:
Codex
2026-05-19 06:42:55 +00:00
parent a0fd161b33
commit 65e52a0fb1
2 changed files with 248 additions and 94 deletions
+5 -1
View File
@@ -29,6 +29,10 @@ server {
}
location / {
set $dev_proxy_request_uri "$request_uri?__unideskDevProxyNoCache=$msec";
if ($args != "") {
set $dev_proxy_request_uri "$request_uri&__unideskDevProxyNoCache=$msec";
}
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
@@ -40,6 +44,6 @@ server {
proxy_set_header Connection "upgrade";
proxy_buffering off;
proxy_read_timeout 300s;
proxy_pass http://backend-core:8080/api/microservices/k3sctl-adapter/proxy/api/services/frontend-dev/proxy$request_uri;
proxy_pass http://backend-core:8080/api/microservices/k3sctl-adapter/proxy/api/services/frontend-dev/proxy$dev_proxy_request_uri;
}
}