Merge branch 'stable-2.15' into stable-2.16
* stable-2.15: Set XSRF on '/' under PolyGerrit Change-Id: Ia3da453253c84a8e04fce42f188dbcb700da0b1e
This commit is contained in:
@@ -247,8 +247,8 @@ public class StaticModule extends ServletModule {
|
|||||||
public void configureServlets() {
|
public void configureServlets() {
|
||||||
for (String p : POLYGERRIT_INDEX_PATHS) {
|
for (String p : POLYGERRIT_INDEX_PATHS) {
|
||||||
// Skip XsrfCookieFilter for /, since that is already done in the GWT UI
|
// Skip XsrfCookieFilter for /, since that is already done in the GWT UI
|
||||||
// path (UrlModule).
|
// path (UrlModule) if it is enabled.
|
||||||
if (!p.equals("/")) {
|
if (!(p.equals("/") && options.enableGwtUi())) {
|
||||||
filter(p).through(XsrfCookieFilter.class);
|
filter(p).through(XsrfCookieFilter.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user