public interface AccessControlAllowHeadersService
Modifier and Type | Method and Description |
---|---|
Map<String,List<String>> |
getAllAllowedHeaders() |
List<String> |
getAllowedHeaders(String module) |
String |
getAllowedHeadersString()
Returns a comma separate String of the acces control allowed headers, removing duplicates
|
void |
setAllowedHeaders(String module,
List<String> allowedHeaders)
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 |
String getAllowedHeadersString()
Map<String,List<String>> getAllAllowedHeaders()
List<String> getAllowedHeaders(String module)
module
void setAllowedHeaders(String module, List<String> allowedHeaders)
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
module
- the module that contributed these allowed headers, for example 'targeting'allowedHeaders
- the allowed headers contributed by the module
, not allowed to be null
Copyright © 2008–2020 Hippo B.V. (http://www.onehippo.com). All rights reserved.