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

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

package cc.shacocloud.mirage.restful.bind;

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

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

/**
 * 跨域请求处理配置属性
 */
@Getter
@Setter
@NoArgsConstructor
public class CorsHandlerOptions {
    
    private final Set allowedMethods = new LinkedHashSet<>();
    private final Set allowedHeaders = new LinkedHashSet<>();
    private final Set exposedHeaders = new LinkedHashSet<>();
    private boolean allowCredentials;
    private String maxAgeSeconds;
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy