package com.zaoo.lambda.rest;

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

@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface CrossOrigin {
    String value() default "*";

    String allowedHeaders() default "*";

    String allowMethods() default "GET, POST, HEAD, OPTIONS";
}

package com.zaoo.lambda.rest;

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

@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface CrossOrigin {
    String value() default "*";

    String allowedHeaders() default "*";

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

update CrossOrigin.allowMethods to include all http methods as default values