public class Cors extends JsonObject
| Constructor and Description |
|---|
Cors() |
| Modifier and Type | Method and Description |
|---|---|
Cors |
addOriginList(String origin) |
String |
getAllow()
o
|
List<String> |
getOriginList() |
void |
setAllow(String allow) |
void |
setOriginList(List<String> originList) |
Cors |
withAllow(String allow) |
Cors |
withOriginList(List<String> originList) |
toStringpublic String getAllow()
public void setAllow(String allow)
allow - whether cross-domain access is allowedpublic void setOriginList(List<String> originList)
originList - List of domain names allowed across domainspublic Cors withAllow(String allow)
allow - whether cross-domain access is allowedpublic Cors withOriginList(List<String> originList)
originList - List of domain names allowed across domainsCopyright © 2023. All rights reserved.