Interface CORSHeaders

All Known Subinterfaces:
BsonService, ByteArrayService, JsonService, Service<R,S>, StringService

public interface CORSHeaders
Author:
Andrea Di Cesare <andrea@softinstigate.com> Defines the CORS headers to be added to the response
  • Field Details

    • ACCESS_CONTROL_EXPOSE_HEADERS

      static final io.undertow.util.HttpString ACCESS_CONTROL_EXPOSE_HEADERS
    • ACCESS_CONTROL_ALLOW_CREDENTIAL

      static final io.undertow.util.HttpString ACCESS_CONTROL_ALLOW_CREDENTIAL
    • ACCESS_CONTROL_ALLOW_ORIGIN

      static final io.undertow.util.HttpString ACCESS_CONTROL_ALLOW_ORIGIN
    • ACCESS_CONTROL_ALLOW_METHODS

      static final io.undertow.util.HttpString ACCESS_CONTROL_ALLOW_METHODS
    • ACCESS_CONTROL_ALLOW_HEADERS

      static final io.undertow.util.HttpString ACCESS_CONTROL_ALLOW_HEADERS
    • DEFAULT_ACCESS_CONTROL_EXPOSE_HEADERS

      static final String DEFAULT_ACCESS_CONTROL_EXPOSE_HEADERS
    • DEFAULT_ACCESS_CONTROL_ALLOW_CREDENTIALS

      static final String DEFAULT_ACCESS_CONTROL_ALLOW_CREDENTIALS
      See Also:
    • DEFAULT_ACCESS_CONTROL_ALLOW_ORIGIN

      static final String DEFAULT_ACCESS_CONTROL_ALLOW_ORIGIN
      See Also:
    • DEFAULT_ACCESS_CONTROL_ALLOW_METHODS

      static final String DEFAULT_ACCESS_CONTROL_ALLOW_METHODS
      See Also:
    • DEFAULT_ACCESS_CONTROL_ALLOW_HEADERS

      static final String DEFAULT_ACCESS_CONTROL_ALLOW_HEADERS
      See Also:
  • Method Details

    • accessControlExposeHeaders

      default String accessControlExposeHeaders(Request<?> r)
      Returns:
      the values of the Access-Control-Expose-Headers
    • accessControlAllowCredentials

      default String accessControlAllowCredentials(Request<?> r)
      Returns:
      the values of the Access-Control-Allow-Credentials
    • accessControlAllowOrigin

      default String accessControlAllowOrigin(Request<?> r)
      Returns:
      the values of the Access-Control-Allow-Origin
    • accessControlAllowMethods

      default String accessControlAllowMethods(Request<?> r)
      Returns:
      the values of the Access-Control-Allow-Methods
    • accessControlAllowHeaders

      default String accessControlAllowHeaders(Request<?> r)
      Returns:
      the values of the Access-Control-Allow-Methods