package Ġio . u ver a . helmet . mvc . filter Ċ Ċ import Ġio . u ver a . helmet . core . handler . Ref errer Policy Handler Ċ import Ġorg . springframework . boot . autoconfigure . condition . Conditional On Property Ċ import Ġorg . springframework . core . annotation . Order Ċ import Ġorg . springframework . stereotype . Component Ċ Ċ @ Conditional On Property ( prefix Ġ= Ġ" spring - helmet ", Ġname Ġ= Ġ[" enable - referrer - policy "]) Ċ @ Order ( 1 ) Ċ @ Component Ċ class ĠRef errer Policy Filter ( handler : ĠRef errer Policy Handler ): ĠHel met Filter < Ref errer Policy Handler >( handler ) Ġ{ Ċ } Ċ