Interface AccessControlAllowHeadersService
public interface AccessControlAllowHeadersService
-
Method Summary
Modifier and TypeMethodDescriptiongetAllowedHeaders
(String module) Returns a comma separate String of the acces control allowed headers, removing duplicatesvoid
setAllowedHeaders
(String module, List<String> allowedHeaders) Since every downstream project can contribute access control allowed headers, we keep them separate bymodule
: The reason is that if the allowed headers for a module change, it can just set them again without the module having to know what the previous contributed allowed header was
-
Method Details
-
getAllowedHeadersString
String getAllowedHeadersString()Returns a comma separate String of the acces control allowed headers, removing duplicates -
getAllAllowedHeaders
- Returns:
- all the access control allowed headers. The returned List objects are immutable
-
getAllowedHeaders
- Returns:
- the immutable list of access control allowed headers for
module
-
setAllowedHeaders
Since every downstream project can contribute access control allowed headers, we keep them separate by
module
: The reason is that if the allowed headers for a module change, it can just set them again without the module having to know what the previous contributed allowed header was- Parameters:
module
- the module that contributed these allowed headers, for example 'targeting'allowedHeaders
- the allowed headers contributed by themodule
, not allowed to benull
-