spring-projects / spring-projects/spring-security

Add lambda DSL method for featurePolicy

Open
#17,321 4 comments 0 reactions 2 assignees View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.