Skip to content

CsrfDsl does not have a spa() configuration method. #18332

@XhstormR

Description

@XhstormR

Describe the bug
According to the documentation, org.springframework.security.config.annotation.web.CsrfDsl should have a spa() configuration method, but it doesn't.
https://docs.spring.io/spring-security/reference/servlet/exploits/csrf.html#csrf-integration-javascript-spa

Image

To Reproduce

    @Bean
    open fun securityFilterChain(http: HttpSecurity): SecurityFilterChain {
        http {
            // ...
            csrf {
                spa()
            }
        }
        return http.build()
    }

Expected behavior
According to the documentation, CsrfDsl should have a spa() configuration method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions