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

com.github.datalking.annotation.web.CrossOrigin Maven / Gradle / Ivy

The newest version!
package com.github.datalking.annotation.web;

import com.github.datalking.web.http.RequestMethod;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author yaoo on 4/28/18
 */
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CrossOrigin {

    String[] value() default {};

    String[] allowedHeaders() default {};

    String[] exposedHeaders() default {};

    RequestMethod[] methods() default {};

    String allowCredentials() default "";

    long maxAge() default -1;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy