[aerogear-dev] [aerogear-controller] Configuration

Daniel Bevenius daniel.bevenius at gmail.com
Tue Nov 13 04:18:24 EST 2012


I'm working on adding CORS support there are several things that can be
configured in this case. Below is an example of the options that are
currently available:

public interface CorsConfiguration {

    public abstract boolean isCorsSupportEnabled();

    public abstract boolean exposeHeaders();

    public abstract String getExposeHeaders();

    public abstract boolean anyOrigin();

    public abstract boolean allowCookies();

    public abstract boolean hasMaxAge();

    public abstract long getMaxAge();

    public abstract Set<String> getValidRequestMethods();

    public abstract Set<String> getValidRequestHeaders();

}

How do we want users to configure these configuration options? Using a CDI
annotation with "sensible" default values or specify them in web.xml?

cheers,

/Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20121113/4ec5a53b/attachment.html 


More information about the aerogear-dev mailing list