All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cc.shacocloud.mirage.web.bind.CorsHandlerOptions Maven / Gradle / Ivy

package cc.shacocloud.mirage.web.bind;

import io.vertx.core.http.HttpMethod;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.LinkedHashSet;
import java.util.Set;

/**
 * mvc 跨域请求处理配置属性
 */
@Getter
@Setter
@NoArgsConstructor
public class CorsHandlerOptions {

    private boolean allowCredentials;

    private String maxAgeSeconds;

    private final Set allowedMethods = new LinkedHashSet<>();

    private final Set allowedHeaders = new LinkedHashSet<>();

    private final Set exposedHeaders = new LinkedHashSet<>();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy