Polish CORS support

This commit is contained in:
Sebastien Deleuze
2015-07-10 15:32:34 +02:00
parent 9c46228a97
commit 882fe129f3
4 changed files with 9 additions and 14 deletions

View File

@@ -39,7 +39,7 @@ import org.springframework.core.annotation.AliasFor;
@Documented
public @interface CrossOrigin {
String[] DEFAULT_ORIGIN = { "*" };
String[] DEFAULT_ORIGINS = { "*" };
String[] DEFAULT_ALLOWED_HEADERS = { "*" };

View File

@@ -42,11 +42,6 @@ public class CorsConfiguration {
*/
public static final String ALL = "*";
/**
* Default maximum age (30 minutes).
*/
public static final Long DEFAULT_MAX_AGE = Long.valueOf(1800);
private List<String> allowedOrigins;
private List<String> allowedMethods;