Package org.spincast.plugins.routing
Class StaticResourceCorsConfigDefault
java.lang.Object
org.spincast.plugins.routing.StaticResourceCorsConfigDefault
- All Implemented Interfaces:
StaticResourceCorsConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe allowed origins.The extra headers a browser will be allowed to read.The extra headers a browser will be allowed to send.int
The max Age a preflight request can be cached.boolean
Are cookies allowed?
-
Constructor Details
-
StaticResourceCorsConfigDefault
-
-
Method Details
-
getAllowedOrigins
Description copied from interface:StaticResourceCorsConfig
The allowed origins.- Specified by:
getAllowedOrigins
in interfaceStaticResourceCorsConfig
-
getExtraHeadersAllowedToBeRead
Description copied from interface:StaticResourceCorsConfig
The extra headers a browser will be allowed to read.- Specified by:
getExtraHeadersAllowedToBeRead
in interfaceStaticResourceCorsConfig
-
getExtraHeadersAllowedToBeSent
Description copied from interface:StaticResourceCorsConfig
The extra headers a browser will be allowed to send.- Specified by:
getExtraHeadersAllowedToBeSent
in interfaceStaticResourceCorsConfig
-
isAllowCookies
public boolean isAllowCookies()Description copied from interface:StaticResourceCorsConfig
Are cookies allowed?- Specified by:
isAllowCookies
in interfaceStaticResourceCorsConfig
-
getMaxAgeInSeconds
public int getMaxAgeInSeconds()Description copied from interface:StaticResourceCorsConfig
The max Age a preflight request can be cached.- Specified by:
getMaxAgeInSeconds
in interfaceStaticResourceCorsConfig
-