public class SynapseCORSConfiguration extends java.lang.Object implements CORSConfiguration
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAllowedHeaders()
Returns allowed headers in the configuration.
|
java.util.Set<java.lang.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 java.util.Set<java.lang.String> getAllowedOrigins()
CORSConfiguration
getAllowedOrigins
in interface CORSConfiguration
public java.lang.String getAllowedHeaders()
CORSConfiguration
getAllowedHeaders
in interface CORSConfiguration
Copyright © 2005-2021 Apache Software Foundation. All Rights Reserved.