Skip to content

Commit

Permalink
SECURITY-2470
Browse files Browse the repository at this point in the history
  • Loading branch information
timja committed Aug 23, 2021
1 parent f684139 commit 8b1e80e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/main/frontend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ document.addEventListener('DOMContentLoaded', (_) => {
.replace('configureSecurity/', '')
.replace('configure', '');

Providers.globalProvider = new ProxyProvider(`${endStrippedCurrentUrl}/GraphProxy`);
Providers.globalProvider = new ProxyProvider(`${endStrippedCurrentUrl}/GraphProxy`, async () => {
return {
[document.head.dataset.crumbHeader as string]: document.head.dataset.crumbValue,
};
});
})
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ public static final class CrumbExempt extends CrumbExclusion {
public boolean process(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
throws IOException, ServletException {
String pathInfo = request.getPathInfo();
if (pathInfo != null && (pathInfo.equals(CALLBACK_URL) || pathInfo.endsWith("GraphProxy/v1.0/$batch"))) {
if (pathInfo != null && pathInfo.equals(CALLBACK_URL)) {
chain.doFilter(request, response);
return true;
}
Expand Down

0 comments on commit 8b1e80e

Please sign in to comment.