spring-projects / spring-projects/spring-security
Add lambda DSL method for featurePolicy
Open
@therepanic is already working on this.
Since Jun 24, 2025.
in: config
type: enhancement
- Dominant language
- Java
- Stars
- 9.6k
- Forks
- 6.3k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 52
Description
Even though Permission-Policy is targeted to replace Feature-Policy, browsers still largely support Feature-Policy, not Permission-Policy. Further , Permission-Policy is still in draft.
As such, we should add the lambda DSL for featurePolicy to HeadersConfigurer and to ServerHttpSecurity. We should also consider removing deprecation markers for Feature-Policy from the Servlet, Reactive, and Kotlin DSLs.
Related #9262
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.