function applyACAOHeader(message, request) {
  if (message.headers && message.headers.origin) {
    request.response.setHeaders(
      {
        "Access-Control-Allow-Origin": message.headers.origin,
        Vary: "Origin",
      },
      true,
    );
  }
}
Set the Header Access-Control-Allow-Origin based on the kuzzle configuration and request origin

@param {HttpMessage} message
@param {Request} request