Skip to content

Commit 8b1e80e

Browse files
committed
SECURITY-2470
1 parent f684139 commit 8b1e80e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/main/frontend/index.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@ document.addEventListener('DOMContentLoaded', (_) => {
1010
.replace('configureSecurity/', '')
1111
.replace('configure', '');
1212

13-
Providers.globalProvider = new ProxyProvider(`${endStrippedCurrentUrl}/GraphProxy`);
13+
Providers.globalProvider = new ProxyProvider(`${endStrippedCurrentUrl}/GraphProxy`, async () => {
14+
return {
15+
[document.head.dataset.crumbHeader as string]: document.head.dataset.crumbValue,
16+
};
17+
});
1418
})

src/main/java/com/microsoft/jenkins/azuread/AzureSecurityRealm.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ public static final class CrumbExempt extends CrumbExclusion {
701701
public boolean process(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
702702
throws IOException, ServletException {
703703
String pathInfo = request.getPathInfo();
704-
if (pathInfo != null && (pathInfo.equals(CALLBACK_URL) || pathInfo.endsWith("GraphProxy/v1.0/$batch"))) {
704+
if (pathInfo != null && pathInfo.equals(CALLBACK_URL)) {
705705
chain.doFilter(request, response);
706706
return true;
707707
}

0 commit comments

Comments
 (0)