Example usage for Java io.netty.handler.codec.http.cors CorsConfigBuilder fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | allowCredentials |
Set | exposeHeaders |
long | maxAge |
CorsConfigBuilder | allowedRequestHeaders(final String... headers) Specifies the if headers that should be returned in the CORS 'Access-Control-Allow-Headers' response header. |
CorsConfigBuilder | allowedRequestHeaders(final CharSequence... headers) Specifies the if headers that should be returned in the CORS 'Access-Control-Allow-Headers' response header. |
CorsConfigBuilder | allowedRequestMethods(final HttpMethod... methods) Specifies the allowed set of HTTP Request Methods that should be returned in the CORS 'Access-Control-Request-Method' response header. |
CorsConfig | build() Builds a CorsConfig with settings specified by previous method calls. |
CorsConfigBuilder | forAnyOrigin() Creates a Builder instance with it's origin set to '*'. |
CorsConfigBuilder | forOrigins(final String... origins) Creates a CorsConfigBuilder instance with the specified origins. |