Package io.javalin.plugin.bundled
Enum GlobalHeadersConfig.CrossOriginResourcePolicy
-
- All Implemented Interfaces:
-
java.io.Serializable
,kotlin.Comparable
public enum GlobalHeadersConfig.CrossOriginResourcePolicy extends Enum<GlobalHeadersConfig.CrossOriginResourcePolicy>
Cross-Origin Resource Policy
-
-
Field Summary
Fields Modifier and Type Field Description private final String
name
private final Integer
ordinal
private final EnumEntries<GlobalHeadersConfig.CrossOriginResourcePolicy>
entries
-
Enum Constant Summary
Enum Constants Enum Constant Description SAME_SITE
Only requests from the same Site can read the resource.
SAME_ORIGIN
Only requests from the same origin (i.e. scheme + host + port) can read the resource.
CROSS_ORIGIN
Requests from any origin (both same-site and cross-site) can read the resource. This is useful when COEP is used.
-
Method Summary
Modifier and Type Method Description final GlobalHeadersConfig.CrossOriginResourcePolicy
valueOf(String value)
Returns the enum constant of this type with the specified name. final Array<GlobalHeadersConfig.CrossOriginResourcePolicy>
values()
Returns an array containing the constants of this enum type, in the order they're declared. final EnumEntries<GlobalHeadersConfig.CrossOriginResourcePolicy>
getEntries()
Cross-Origin Resource Policy -
-
Method Detail
-
valueOf
final GlobalHeadersConfig.CrossOriginResourcePolicy valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<GlobalHeadersConfig.CrossOriginResourcePolicy> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntries
final EnumEntries<GlobalHeadersConfig.CrossOriginResourcePolicy> getEntries()
Cross-Origin Resource Policy
-
-
-
-