Package org.spincast.plugins.routing
Class StaticResourceCorsConfigDefault
java.lang.Object
org.spincast.plugins.routing.StaticResourceCorsConfigDefault
- All Implemented Interfaces:
StaticResourceCorsConfig
-
Constructor Summary
Constructors -
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.intThe max Age a preflight request can be cached.booleanAre cookies allowed?
-
Constructor Details
-
StaticResourceCorsConfigDefault
-
-
Method Details
-
getAllowedOrigins
Description copied from interface:StaticResourceCorsConfigThe allowed origins.- Specified by:
getAllowedOriginsin interfaceStaticResourceCorsConfig
-
getExtraHeadersAllowedToBeRead
Description copied from interface:StaticResourceCorsConfigThe extra headers a browser will be allowed to read.- Specified by:
getExtraHeadersAllowedToBeReadin interfaceStaticResourceCorsConfig
-
getExtraHeadersAllowedToBeSent
Description copied from interface:StaticResourceCorsConfigThe extra headers a browser will be allowed to send.- Specified by:
getExtraHeadersAllowedToBeSentin interfaceStaticResourceCorsConfig
-
isAllowCookies
public boolean isAllowCookies()Description copied from interface:StaticResourceCorsConfigAre cookies allowed?- Specified by:
isAllowCookiesin interfaceStaticResourceCorsConfig
-
getMaxAgeInSeconds
public int getMaxAgeInSeconds()Description copied from interface:StaticResourceCorsConfigThe max Age a preflight request can be cached.- Specified by:
getMaxAgeInSecondsin interfaceStaticResourceCorsConfig
-