Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEC-2439: HttpSessionCsrfTokenRepository setHeaderName uses parameterName #2660

spring-issuemaster opened this issue Dec 12, 2013 · 1 comment


None yet
2 participants
Copy link

commented Dec 12, 2013

Matthew Kennedy (Migrated from SEC-2439) said:

In HttpSessionCsrfTokenRepository, setHeaderName should use headerName, not parameterName (probably a copy/paste bug):

     * Sets the header name that the {@link CsrfToken} is expected to appear on
     * and the header that the response will contain the {@link CsrfToken}.
     * @param parameterName
     *            the new parameter name to use
    public void setHeaderName(String parameterName) {
        Assert.hasLength(parameterName, "parameterName cannot be null or empty");
        this.parameterName = parameterName;

This comment has been minimized.

Copy link

commented Dec 13, 2013

Rob Winch said:

Thanks for reporting this. I have pushed a fix to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.