File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
src/main/java/com/genexus/springboot Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 18
18
<groupId >${project.groupId} </groupId >
19
19
<artifactId >gxclassR</artifactId >
20
20
<version >${project.version} </version >
21
+ <exclusions >
22
+ <exclusion >
23
+ <groupId >${project.groupId} </groupId >
24
+ <artifactId >gxwrapperjavax</artifactId >
25
+ </exclusion >
26
+ </exclusions >
21
27
</dependency >
22
28
<dependency >
23
29
<groupId >${project.groupId} </groupId >
Original file line number Diff line number Diff line change 4
4
import com .genexus .common .interfaces .SpecificImplementation ;
5
5
import com .genexus .diagnostics .core .ILogger ;
6
6
import com .genexus .diagnostics .core .LogManager ;
7
+ import com .genexus .servlet .CorsFilter ;
7
8
import org .springframework .boot .web .servlet .FilterRegistrationBean ;
8
9
import org .springframework .beans .factory .annotation .Value ;
9
10
import org .springframework .context .annotation .Bean ;
@@ -51,6 +52,15 @@ public void addResourceHandlers(ResourceHandlerRegistry registry) {
51
52
}
52
53
}
53
54
55
+ @ Bean
56
+ public FilterRegistrationBean <CorsFilter > corsFilter () {
57
+ FilterRegistrationBean <CorsFilter > registrationBean = new FilterRegistrationBean <>();
58
+ registrationBean .setFilter (new CorsFilter ());
59
+ registrationBean .addUrlPatterns ("/*" );
60
+ return registrationBean ;
61
+ }
62
+
63
+
54
64
@ Bean
55
65
public FilterRegistrationBean <UrlRewriteFilter > urlRewriteFilter () {
56
66
FilterRegistrationBean <UrlRewriteFilter > registrationBean = new FilterRegistrationBean <>();
You can’t perform that action at this time.
0 commit comments