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";
}

@@ -421,18 +421,38 @@
 ET, 
-POST, HEAD
+HEAD, POST, PUT, PATCH, DELETE
 , OP
@@ -456,13 +456,20 @@
  OPTIONS
+, TRACE
 %22;%0A%7D%0A

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