@ file : Suppress (" unused ") Ċ Ċ package Ġio . u ver a . helmet . core Ċ Ċ import ĠDirective Values Valid Ċ import Ġio . u ver a . helmet . core . validation . Default Src Directive Valid Ċ import Ġio . u ver a . helmet . core . validation . Directive Name Valid Ċ import Ġio . u ver a . helmet . core . validation . Directives NotEmpty When Use Default IsFalse Ċ import Ġorg . springframework . boot . context . properties . Configuration Properties Ċ import Ġorg . springframework . stereotype . Component Ċ import Ġorg . springframework . validation . annotation . Validated Ċ import Ġjavax . validation . constraints . Min Ċ import Ġjavax . validation . constraints . NotEmpty Ċ Ċ @ Component Ċ @ Validated Ċ @ Configuration Properties ( prefix Ġ= Ġ" spring - helmet ") Ċ @ Directives NotEmpty When Use Default IsFalse Ċ class ĠHel met Properties Ġ{ ĊĠĠĠ Ġvar Ġenable Cross Origin Embed der Policy : ĠBoolean Ġ= Ġtrue ĊĠĠĠ Ġvar Ġenable Cross Origin Op ener Policy : ĠBoolean Ġ= Ġtrue ĊĠĠĠ Ġvar Ġenable Cross Origin Resource Policy : ĠBoolean Ġ= Ġtrue ĊĠĠĠ Ġvar Ġenable Origin Agent Cluster : ĠBoolean Ġ= Ġtrue ĊĠĠĠ Ġvar Ġenable Ref errer Policy : ĠBoolean Ġ= Ġtrue ĊĠĠĠ Ġvar Ġenable Strict Transport Security : ĠBoolean Ġ= Ġtrue ĊĠĠĠ Ġvar Ġenable DoNot Sn iff Mime type : ĠBoolean Ġ= Ġtrue ĊĠĠĠ Ġvar Ġenable X Dns Pref etch Control : ĠBoolean Ġ= Ġtrue ĊĠĠĠ Ġvar Ġenable X Download Options : ĠBoolean Ġ= Ġtrue ĊĠĠĠ Ġvar Ġenable X Frame Options : ĠBoolean Ġ= Ġtrue ĊĠĠĠ Ġvar Ġenable X Per mitted Cross Domain Policies : ĠBoolean Ġ= Ġtrue ĊĠĠĠ Ġvar Ġremove X Power edBy : ĠBoolean Ġ= Ġtrue ĊĠĠĠ Ġvar Ġdisable XX ss Protection : ĠBoolean Ġ= Ġtrue ĊĠĠĠ Ġvar Ġenable Content Security Policy : ĠBoolean Ġ= Ġtrue ĊĊĊĠĠĠ Ġvar Ġcross Origin Resource Policy : ĠCross Origin Resource Policy Ġ= ĠCross Origin Resource Policy . SAME _ ORIGIN ĊĠĠĠ Ġvar Ġcross Origin Op ener Policy : ĠCross Origin Op ener Policy Ġ= ĠCross Origin Op ener Policy . SAME _ ORIGIN ĊĊĠĠĠ Ġ@ NotEmpty ĊĠĠĠ Ġvar Ġref errer Policy : ĠList < Ref errer Policy > Ġ= ĠlistOf ( Ref errer Policy . NO _ REF ERR ER ) ĊĊĠĠĠ Ġvar Ġstrict Transport Security Ġ= ĠStrict Transport Security Properties () ĊĊĠĠĠ Ġclass ĠStrict Transport Security Properties Ġ{ ĊĠĠĠĠĠĠĠ Ġ@ Min ( 1 ) ĊĠĠĠĠĠĠĠ Ġvar Ġmax Age : ĠLong Ġ= Ġ 1 5 5 5 2 0 0 0 L ĊĠĠĠĠĠĠĠ Ġvar Ġinclude Sub Domains : ĠBoolean Ġ= Ġtrue ĊĠĠĠĠĠĠĠ Ġvar Ġpreload Ġ= Ġfalse ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġvar Ġx Dns Pref etch Control : ĠX Dns Pref etch Control Ġ= ĠX Dns Pref etch Control . OFF ĊĠĠĠ Ġvar Ġx Frame Options : ĠX Frame Options Ġ= ĠX Frame Options . SAME _ ORIGIN ĊĠĠĠ Ġvar Ġx Per mitted Cross Domain Policies : ĠX Per mitted Cross Domain Policies Ġ= ĠX Per mitted Cross Domain Policies . NONE ĊĊĠĠĠ Ġvar Ġcontent Security Policy : ĠContent Security Policy Properties Ġ= ĠContent Security Policy Properties () ĊĊĠĠĠ Ġ@ Validated ĊĠĠĠ Ġclass ĠContent Security Policy Properties Ġ{ ĊĠĠĠĠĠĠĠ Ġ@ get : Directive Values Valid ĊĠĠĠĠĠĠĠ Ġ@ get : Directive Name Valid ĊĠĠĠĠĠĠĠ Ġ@ get : Default Src Directive Valid ĊĠĠĠĠĠĠĠ Ġvar Ġdirectives : ĠC SP Directives Ġ= Ġmap Of () ĊĠĠĠĠĠĠĠ Ġvar Ġuse Default : ĠBoolean Ġ= Ġtrue ĊĠĠĠĠĠĠĠ Ġvar Ġreport Only : ĠBoolean Ġ= Ġfalse ĊĠĠĠ Ġ} Ċ } Ċ Ċ type alias ĠC SP Directives Ġ= ĠMap < String , ĠList < String >> Ċ Ċ enum Ġclass ĠCross Origin Op ener Policy ( val Ġvalue : ĠString ) Ġ{ ĊĠĠĠ ĠS AME _ ORIGIN (" same - origin "), ĊĠĠĠ ĠS AME _ ORIGIN _ ALLOW _ POP UP S (" same - origin - allow - pop ups "), ĊĠĠĠ ĠUNS AFE _ NONE (" unsafe - none ") Ċ } Ċ Ċ enum Ġclass ĠCross Origin Resource Policy ( val Ġvalue : ĠString ) Ġ{ ĊĠĠĠ ĠS AME _ ORIGIN (" same - origin "), ĊĠĠĠ ĠS AME _ SITE (" same - site "), ĊĠĠĠ ĠC ROSS _ ORIGIN (" cross - origin ") Ċ } Ċ Ċ enum Ġclass ĠRef errer Policy ( val Ġvalue : ĠString ) Ġ{ ĊĠĠĠ ĠNO _ REF ERR ER (" no - referrer "), ĊĠĠĠ ĠNO _ REF ERR ER _ WHEN _ DOWN GR ADE (" no - referrer - when - down grade "), ĊĠĠĠ ĠS AME _ ORIGIN (" same - origin "), ĊĠĠĠ ĠOR IGIN (" origin "), ĊĠĠĠ ĠSTRICT _ ORIGIN (" strict - origin "), ĊĠĠĠ ĠOR IGIN _ WHEN _ CROSS _ ORIGIN (" origin - when - cross - origin "), ĊĠĠĠ ĠSTRICT _ ORIGIN _ WHEN _ CROSS _ ORIGIN (" strict - origin - when - cross - origin "), ĊĠĠĠ ĠUNS AFE _ URL (" unsafe - url "), ĊĠĠĠ ĠEMPTY _ STRING (""), Ċ } Ċ Ċ enum Ġclass ĠX Dns Pref etch Control Ġ{ ĊĠĠĠ ĠON , ĠOFF Ċ } Ċ Ċ enum Ġclass ĠX Frame Options ( val Ġvalue : ĠString ) Ġ{ ĊĠĠĠ ĠD EN Y (" DEN Y "), ĊĠĠĠ ĠS AME _ ORIGIN (" SAME ORIGIN ") Ċ } Ċ Ċ enum Ġclass ĠX Per mitted Cross Domain Policies ( val Ġvalue : ĠString ) Ġ{ ĊĠĠĠ ĠNONE (" none "), ĊĠĠĠ ĠMASTER _ ONLY (" master - only "), ĊĠĠĠ ĠBY _ CONTENT _ TYPE (" by - content - type "), ĊĠĠĠ ĠALL (" all ") Ċ } Ċ