You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cloudplatform/connectivity-apache-httpclient5/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/CsrfTokenInterceptor.java
+31-13Lines changed: 31 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -90,25 +90,43 @@ class CsrfTokenInterceptor implements HttpRequestInterceptor
90
90
}
91
91
92
92
/**
93
-
* Derives the service root URI from the full request URI by truncating the path at the first OData resource
94
-
* segment. This matches the HC4 behavior where the CSRF token HEAD request was always sent to the service path root
95
-
* rather than the specific resource path.
93
+
* Derives the service root URI from the full request URI to send the CSRF token HEAD request.
96
94
* <p>
97
-
* The service root is identified as the path up to and including the trailing slash before the first resource
Copy file name to clipboardExpand all lines: cloudplatform/connectivity-apache-httpclient5/src/test/java/com/sap/cloud/sdk/cloudplatform/connectivity/CsrfTokenInterceptorTest.java
0 commit comments