FoCorsFilter implements ContainerResponseFilter { String decideResponseOriginHeader(List<String> allowed, String origin) { if (allowed == null || allowed.isEmpty()) { return null; } if (allowed.contains("*")) { return "*"; } if (allowed.contains(origin)) { return origin; } return null; }  @Override void filter(ContainerRequestContext request,
			ContainerResponseContext response); @Value("${dollar}{corsAllowedOrigins}") void setCorsAllowedOrigins(String corsAllowedOriginsStr);  }
@Test public void testDecideResponseOriginHeader() { FoCorsFilter filter = new FoCorsFilter(); assertNull(filter.decideResponseOriginHeader(null, "http: assertNull(filter.decideResponseOriginHeader(Collections.emptyList(), "http: assertNull(filter.decideResponseOriginHeader(Arrays.asList("http: assertEquals("*", filter.decideResponseOriginHeader(Arrays.asList("http: assertEquals("http: }