File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/main/java/org/commonwl/view Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 24
24
import org .springframework .context .annotation .Configuration ;
25
25
import org .springframework .http .MediaType ;
26
26
import org .springframework .web .servlet .config .annotation .ContentNegotiationConfigurer ;
27
+ import org .springframework .web .servlet .config .annotation .CorsRegistry ;
27
28
import org .springframework .web .servlet .config .annotation .WebMvcConfigurerAdapter ;
28
29
29
30
@ Configuration
@@ -64,4 +65,9 @@ public void configureContentNegotiation(ContentNegotiationConfigurer configurer)
64
65
.mediaType ("yaml" , parseMediaType ("text/x-yaml" ))
65
66
.mediaType ("raw" , MediaType .APPLICATION_OCTET_STREAM );
66
67
}
67
- }
68
+
69
+ @ Override
70
+ public void addCorsMappings (CorsRegistry registry ) {
71
+ registry .addMapping ("/**" ); // .setMaxAge(Long.MAX_VALUE)
72
+ }
73
+ }
You can’t perform that action at this time.
0 commit comments