public class SynapseCORSConfiguration extends Object implements CORSConfiguration
Modifier and Type | Method and Description |
---|---|
String |
getAllowedHeaders()
Returns allowed headers in the configuration.
|
Set<String> |
getAllowedOrigins()
Returns allowed origins in the configuration.
|
static SynapseCORSConfiguration |
getInstance() |
boolean |
isEnabled()
Returns if CORS is enabled.
|
public static SynapseCORSConfiguration getInstance()
public boolean isEnabled()
CORSConfiguration
isEnabled
in interface CORSConfiguration
public Set<String> getAllowedOrigins()
CORSConfiguration
getAllowedOrigins
in interface CORSConfiguration
public String getAllowedHeaders()
CORSConfiguration
getAllowedHeaders
in interface CORSConfiguration
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.