co.abit.api.core.cors.config.CorsProperties Maven / Gradle / Ivy
package co.abit.api.core.cors.config;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Getter
@Setter
@Configuration
@ConfigurationProperties("app.cors")
public class CorsProperties {
private String[] allowedOrigins;
private String[] allowedMethods;
private String[] allowedHeaders;
private String[] exposedHeaders;
private Long maxAge = 0L;
private boolean allowCredentials = false;
}