package com.microservices.mon.k8s.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("网关安全认证配置")
public class GatewaySafetyConfig {
    @ApiModelProperty(value = "允许请求来源")
    private List<String> allowedOriginPatterns;
    @ApiModelProperty(value = "允许请求头")
    private List<String> allowedHeaders;
    @ApiModelProperty(value = "预检请求缓存时间")
    private Integer maxAge=360000;
    @ApiModelProperty(value = "允许请求方法")
    private List<String> allowedMethods;
    @ApiModelProperty(value = "允许证书")
    private Boolean allowCredentials = true;
}
