Package io.micronaut.security.fetchmetadata
@Configuration
@NullMarked
package io.micronaut.security.fetchmetadata
Protects HTTP endpoints using the browser-provided
Fetch Metadata request headers.
Fetch Metadata is a request-isolation signal and does not replace authentication,
authorization, or CSRF protection. Routes annotated with @CrossOrigin are exempted
only when their CORS configuration accepts the request origin and HTTP method, and allows
credentials when the request carries cookies.
- Since:
- 5.6.0
-
ClassDescriptionServer filter that enforces the configured Fetch Metadata request-isolation policy.Configuration for the Fetch Metadata request filter.Evaluates a request using Fetch Metadata or related request information.Result of evaluating a
FetchMetadataRule.A Fetch Metadata rule forHttpRequestinstances.