1 package com.atlassian.plugins.rest.common.security; 2 3 import java.lang.annotation.ElementType; 4 import java.lang.annotation.Retention; 5 import java.lang.annotation.RetentionPolicy; 6 import java.lang.annotation.Target; 7 8 /** 9 * The annotation used to indicate that a method allows Cors preflight and simple cross-origin requests. See 10 * http://www.w3.org/TR/cors for more information. 11 * 12 * @since 2.6 13 */ 14 @Retention (RetentionPolicy.RUNTIME) 15 @Target ({ElementType.METHOD, ElementType.TYPE, ElementType.PACKAGE}) 16 public @interface CorsAllowed 17 { 18 }