diff --git a/codegen-cli/pom.xml b/codegen-cli/pom.xml
index fa1c7e47e..428602d8d 100644
--- a/codegen-cli/pom.xml
+++ b/codegen-cli/pom.xml
@@ -21,7 +21,7 @@
com.networknt
light-codegen
- 1.5.12
+ 1.5.13
..
diff --git a/codegen-core/pom.xml b/codegen-core/pom.xml
index a281bffba..86a2e01a8 100644
--- a/codegen-core/pom.xml
+++ b/codegen-core/pom.xml
@@ -21,7 +21,7 @@
com.networknt
light-codegen
- 1.5.12
+ 1.5.13
..
diff --git a/codegen-fwk/pom.xml b/codegen-fwk/pom.xml
index 422bedb30..1bdb77702 100644
--- a/codegen-fwk/pom.xml
+++ b/codegen-fwk/pom.xml
@@ -21,7 +21,7 @@
com.networknt
light-codegen
- 1.5.12
+ 1.5.13
..
diff --git a/codegen-web/pom.xml b/codegen-web/pom.xml
index 1f413cabf..3a23d11da 100644
--- a/codegen-web/pom.xml
+++ b/codegen-web/pom.xml
@@ -21,7 +21,7 @@
com.networknt
light-codegen
- 1.5.12
+ 1.5.13
..
@@ -58,6 +58,10 @@
com.networknt
metrics
+
+ com.networknt
+ cors
+
com.networknt
traceability
diff --git a/codegen-web/src/main/resources/config/cors.yml b/codegen-web/src/main/resources/config/cors.yml
index 47a2248b1..fc7155c01 100644
--- a/codegen-web/src/main/resources/config/cors.yml
+++ b/codegen-web/src/main/resources/config/cors.yml
@@ -7,7 +7,7 @@ enabled: true
allowedOrigins:
- http://localhost
# Support for react dev server.
-- http://localhost:3000
+- http://localhost:3001
# Allowed methods list.
allowedMethods:
- GET
diff --git a/codegen-web/src/main/resources/config/service.yml b/codegen-web/src/main/resources/config/service.yml
index ad49b0dc3..70f070fcd 100644
--- a/codegen-web/src/main/resources/config/service.yml
+++ b/codegen-web/src/main/resources/config/service.yml
@@ -21,6 +21,8 @@ singletons:
- com.networknt.traceability.TraceabilityHandler
# Correlation Create correlationId if it doesn't exist in the request header and put it into the request header
- com.networknt.correlation.CorrelationHandler
+ # Cors handler to handler post/put pre-flight
+ - com.networknt.cors.CorsHttpHandler
# SimpleAudit Log important info about the request into audit log
- com.networknt.audit.AuditHandler
# Generator interface implementations
diff --git a/light-graphql-4j/pom.xml b/light-graphql-4j/pom.xml
index 6bfcd6ec7..c9554a13c 100644
--- a/light-graphql-4j/pom.xml
+++ b/light-graphql-4j/pom.xml
@@ -21,7 +21,7 @@
com.networknt
light-codegen
- 1.5.12
+ 1.5.13
..
diff --git a/light-graphql-4j/src/main/resources/templates/graphql/pom.xml.rocker.raw b/light-graphql-4j/src/main/resources/templates/graphql/pom.xml.rocker.raw
index 659ca6dcb..85d06dd66 100644
--- a/light-graphql-4j/src/main/resources/templates/graphql/pom.xml.rocker.raw
+++ b/light-graphql-4j/src/main/resources/templates/graphql/pom.xml.rocker.raw
@@ -11,20 +11,18 @@
1.8
UTF-8
- 1.5.12
- 1.5.12
- 2.9.4
+ 1.5.13
+ 1.5.13
+ 2.9.5
1.7.25
- 0.6.1
- 4.7
- 1.2.1
+ 0.6.3
1.2.3
4.12
- 1.4.20.Final
- 4.2
+ 1.4.23.Final
+ 8.0
2.1.5
@if(config.toBoolean("supportDb") || config.toBoolean("supportH2ForTest")){
- 2.6.2
+ 3.0.0
}
@if(config.toBoolean("supportDb") && "oracle".equalsIgnoreCase(config.toString("dbInfo", "name"))){
11.2.0.3
diff --git a/light-hybrid-4j/pom.xml b/light-hybrid-4j/pom.xml
index fad6a5cce..fa6fa0cf9 100644
--- a/light-hybrid-4j/pom.xml
+++ b/light-hybrid-4j/pom.xml
@@ -21,7 +21,7 @@
com.networknt
light-codegen
- 1.5.12
+ 1.5.13
..
diff --git a/light-hybrid-4j/src/main/resources/templates/hybrid/server/pom.xml.rocker.raw b/light-hybrid-4j/src/main/resources/templates/hybrid/server/pom.xml.rocker.raw
index c7eff5ea1..bcea11afa 100644
--- a/light-hybrid-4j/src/main/resources/templates/hybrid/server/pom.xml.rocker.raw
+++ b/light-hybrid-4j/src/main/resources/templates/hybrid/server/pom.xml.rocker.raw
@@ -11,23 +11,21 @@
1.8
UTF-8
- 1.5.12
- 1.5.12
+ 1.5.13
+ 1.5.13
@if(config.toBoolean("eventuateQuerySupport") || config.toBoolean("eventuateCommandSupport")){
- 1.5.12
+ 1.5.13
}
- 2.9.4
+ 2.9.5
1.7.25
- 0.6.1
- 4.7
- 1.2.1
+ 0.6.3
1.2.3
4.12
- 1.4.20.Final
- 0.1.15
- 2.7.0
+ 1.4.23.Final
+ 0.1.18
+ 2.18.1
@if(config.toBoolean("supportDb") || config.toBoolean("supportH2ForTest")){
- 2.6.2
+ 3.0.0
}
@if(config.toBoolean("supportDb") && "oracle".equalsIgnoreCase(config.toString("dbInfo", "name"))){
11.2.0.3
diff --git a/light-hybrid-4j/src/main/resources/templates/hybrid/service/pom.xml.rocker.raw b/light-hybrid-4j/src/main/resources/templates/hybrid/service/pom.xml.rocker.raw
index b09dcf40e..1b70b2e53 100644
--- a/light-hybrid-4j/src/main/resources/templates/hybrid/service/pom.xml.rocker.raw
+++ b/light-hybrid-4j/src/main/resources/templates/hybrid/service/pom.xml.rocker.raw
@@ -11,23 +11,21 @@
1.8
UTF-8
- 1.5.12
- 1.5.12
+ 1.5.13
+ 1.5.13
@if(config.toBoolean("eventuateQuerySupport") || config.toBoolean("eventuateCommandSupport")){
- 1.5.12
+ 1.5.13
}
- 2.9.4
+ 2.9.5
1.7.25
- 0.6.1
- 4.7
- 1.2.1
+ 0.6.3
1.2.3
4.12
- 1.4.20.Final
- 0.1.15
- 2.7.0
+ 1.4.23.Final
+ 0.1.18
+ 2.18.1
@if(config.toBoolean("supportDb") || config.toBoolean("supportH2ForTest")){
- 2.6.2
+ 3.0.0
}
@if(config.toBoolean("supportDb") && "oracle".equalsIgnoreCase(config.toString("dbInfo", "name"))){
11.2.0.3
diff --git a/light-rest-4j/pom.xml b/light-rest-4j/pom.xml
index 819ab82a9..4f3950789 100644
--- a/light-rest-4j/pom.xml
+++ b/light-rest-4j/pom.xml
@@ -21,7 +21,7 @@
com.networknt
light-codegen
- 1.5.12
+ 1.5.13
..
diff --git a/light-rest-4j/src/main/resources/templates/rest/openapi/pom.xml.rocker.raw b/light-rest-4j/src/main/resources/templates/rest/openapi/pom.xml.rocker.raw
index e839895d2..d4d98d0b3 100644
--- a/light-rest-4j/src/main/resources/templates/rest/openapi/pom.xml.rocker.raw
+++ b/light-rest-4j/src/main/resources/templates/rest/openapi/pom.xml.rocker.raw
@@ -11,26 +11,22 @@
1.8
UTF-8
- 1.5.12
- 1.5.12
+ 1.5.13
+ 1.5.13
@if(config.toBoolean("eventuateQuerySupport") || config.toBoolean("eventuateCommandSupport")){
- 1.5.12
+ 1.5.13
}
-
- 1.5.12
- 2.9.4
+ 1.5.13
+ 2.9.5
1.7.25
- 0.6.1
- 4.7
- 1.1
- 1.2.1
+ 0.6.3
1.2.3
4.12
- 1.4.20.Final
- 0.1.15
- 2.7.0
+ 1.4.23.Final
+ 0.1.18
+ 2.18.1
@if(config.toBoolean("supportDb") || config.toBoolean("supportH2ForTest")){
- 2.6.2
+ 3.0.0
}
@if(config.toBoolean("supportDb") && "oracle".equalsIgnoreCase(config.toString("dbInfo", "name"))){
11.2.0.3
@@ -244,11 +240,6 @@
logback-classic
${version.logback}
-
- org.apache.commons
- commons-text
- ${version.commons-text}
-
io.undertow
undertow-core
diff --git a/light-rest-4j/src/main/resources/templates/rest/swagger/pom.xml.rocker.raw b/light-rest-4j/src/main/resources/templates/rest/swagger/pom.xml.rocker.raw
index 164587c9c..87d112394 100644
--- a/light-rest-4j/src/main/resources/templates/rest/swagger/pom.xml.rocker.raw
+++ b/light-rest-4j/src/main/resources/templates/rest/swagger/pom.xml.rocker.raw
@@ -11,25 +11,22 @@
1.8
UTF-8
- 1.5.12
- 1.5.12
- 2.9.4
+ 1.5.13
+ 1.5.13
+ 2.9.5
@if(config.toBoolean("eventuateQuerySupport") || config.toBoolean("eventuateCommandSupport")){
- 1.5.12
+ 1.5.13
}
1.7.25
- 0.6.1
- 4.7
- 1.1
- 1.2.1
+ 0.6.3
1.2.3
4.12
- 1.4.20.Final
- 1.0.32
- 0.1.15
- 2.7.0
+ 1.4.23.Final
+ 1.0.34
+ 0.1.18
+ 2.18.1
@if(config.toBoolean("supportDb") || config.toBoolean("supportH2ForTest")){
- 2.6.2
+ 3.0.0
}
@if(config.toBoolean("supportDb") && "oracle".equalsIgnoreCase(config.toString("dbInfo", "name"))){
11.2.0.3
@@ -187,7 +184,7 @@
io.swagger
swagger-parser
- ${version.swagger}
+ ${version.swagger-parser}
@if(config.toBoolean("eventuateQuerySupport") || config.toBoolean("eventuateCommandSupport")){
@@ -242,11 +239,6 @@
logback-classic
${version.logback}
-
- org.apache.commons
- commons-text
- ${version.commons-text}
-
io.undertow
undertow-core
diff --git a/pom.xml b/pom.xml
index b92620082..9572d6b0d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -19,7 +19,7 @@
4.0.0
com.networknt
light-codegen
- 1.5.12
+ 1.5.13
pom
Parent POM
Light Code Generator
@@ -66,37 +66,37 @@
1.8
UTF-8
- 1.5.12
- 1.5.12
- 1.5.12
- 1.5.12
+ 1.5.13
+ 1.5.13
+ 1.5.13
+ 1.5.13
0.9.15
3.21.0-GA
1.7.25
- 0.6.1
+ 0.6.3
4.7
- 1.1
+ 1.3
2.5
- 1.10
+ 1.11
1.2.1
1.2.3
4.12
- 1.4.20.Final
- 1.0.32
+ 1.4.23.Final
+ 1.0.34
1.3
3.8.0
2.1.10
3.0.2
- 0.1.15
+ 0.1.18
1.2.4
3.5.3-beta
0.3
4.0.0
- 1.18
+ 1.20
0.22.0
1.72
- 2.7.0
- 4.2
+ 2.18.1
+ 8.0
2.4
-Xmx512m -XX:MaxPermSize=256m
@@ -171,6 +171,11 @@
metrics
${version.light-4j}
+
+ com.networknt
+ cors
+ ${version.light-4j}
+
com.networknt
correlation