Uses of Class
io.netty.handler.codec.http.cors.CorsConfigBuilder
Packages that use CorsConfigBuilder
Package
Description
This package contains Cross Origin Resource Sharing (CORS) related classes.
-
Uses of CorsConfigBuilder in io.netty.handler.codec.http.cors
Methods in io.netty.handler.codec.http.cors that return CorsConfigBuilderModifier and TypeMethodDescriptionCorsConfigBuilder.allowCredentials()By default cookies are not included in CORS requests, but this method will enable cookies to be added to CORS requests.CorsConfigBuilder.allowedRequestHeaders(CharSequence... headers) Specifies the if headers that should be returned in the CORS 'Access-Control-Allow-Headers' response header.CorsConfigBuilder.allowedRequestHeaders(String... headers) Specifies the if headers that should be returned in the CORS 'Access-Control-Allow-Headers' response header.CorsConfigBuilder.allowedRequestMethods(HttpMethod... methods) Specifies the allowed set of HTTP Request Methods that should be returned in the CORS 'Access-Control-Request-Method' response header.CorsConfigBuilder.allowNullOrigin()Web browsers may set the 'Origin' request header to 'null' if a resource is loaded from the local file system.CorsConfigBuilder.allowPrivateNetwork()Web browsers may set the 'Access-Control-Request-Private-Network' request header if a resource is loaded from a local network.CorsConfigBuilder.disable()Disables CORS support.CorsConfigBuilder.exposeHeaders(CharSequence... headers) Specifies the headers to be exposed to calling clients.CorsConfigBuilder.exposeHeaders(String... headers) Specifies the headers to be exposed to calling clients.static CorsConfigBuilderCorsConfigBuilder.forAnyOrigin()Creates a Builder instance with it's origin set to '*'.static CorsConfigBuilderCreates aCorsConfigBuilderinstance with the specified origin.static CorsConfigBuilderCorsConfigBuilder.forOrigins(String... origins) Creates aCorsConfigBuilderinstance with the specified origins.CorsConfigBuilder.maxAge(long max) When making a preflight request the client has to perform two request with can be inefficient.CorsConfigBuilder.noPreflightResponseHeaders()Specifies that no preflight response headers should be added to a preflight response.CorsConfigBuilder.preflightResponseHeader(CharSequence name, Iterable<T> value) Returns HTTP response headers that should be added to a CORS preflight response.CorsConfigBuilder.preflightResponseHeader(CharSequence name, Object... values) Returns HTTP response headers that should be added to a CORS preflight response.CorsConfigBuilder.preflightResponseHeader(CharSequence name, Callable<T> valueGenerator) Returns HTTP response headers that should be added to a CORS preflight response.CorsConfigBuilder.shortCircuit()Specifies that a CORS request should be rejected if it's invalid before being further processing.