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

com.litongjava.annotation.EnableCORS Maven / Gradle / Ivy

There is a newer version: 1.1.5
Show newest version
package com.litongjava.annotation;

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

/**
 * Details of the meaning of each parameter : https://developer.mozilla.org/en-US/docs/Glossary/CORS
 */
@Inherited
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD, ElementType.TYPE })
public @interface EnableCORS {

  String allowOrigin() default "*";

  String allowCredentials() default "true";

  String allowHeaders() default "Origin,X-Requested-With,Content-Type,Accept,Authorization,Jwt";

  String allowMethods() default "GET,PUT,POST,DELETE,PATCH,OPTIONS";

  String exposeHeaders() default "";

  String requestHeaders() default "";

  String requestMethod() default "";

  String origin() default "";

  String maxAge() default "3600";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy