fix(demo): keep OAuth token responses uncacheable in development (#11742)

This commit is contained in:
Gustavo Valverde
2026-10-14 09:27:24 +01:00
committed by GitHub
parent 0cfe07dccd
commit 3ddc6096e5
+1 -4
View File
@@ -18,10 +18,7 @@ function addCorsHeaders(url: URL, headers: Headers) {
);
headers.set("Access-Control-Allow-Origin", "*");
headers.set("Access-Control-Allow-Headers", "authorization, content-type");
headers.set(
"Cache-Control",
"public, max-age=15, stale-while-revalidate=15, stale-if-error=86400",
);
// Leave Cache-Control to the library: token responses must be no-store (RFC 6749 §5.1).
}
}