Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,40 @@
<artifactId>spring-web</artifactId>
<version>6.1.12</version>
</dependency>

<!-- Jersey JSON Processing -->
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-processing</artifactId>
<version>2.30.1</version>
</dependency>

<!-- JAXB Runtime Implementation -->
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.1</version>
</dependency>
Comment on lines +224 to +236
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ’‘ Verification agent

🧩 Analysis chain

Verify dependency versions for security and compatibility.

The Jersey (2.30.1) and JAXB (2.3.1) versions appear outdated and may contain security vulnerabilities or compatibility issues with Spring Boot 3.2.2.


🌐 Web query:

What are the latest stable versions of Jersey media json processing and JAXB runtime, and are there any known security vulnerabilities in versions 2.30.1 and 2.3.1 respectively?

πŸ’‘ Result:

Latest Stable Versions

Jersey Media JSON Processing

  • The latest stable version of jersey-media-json-processing (as of May 2025) is 3.1.10, released in January 2025[1][3]. There is also a 4.0.0-M2 milestone release, but 3.1.10 is the newest stable (non-milestone) version[3].

Glassfish JAXB Runtime

  • For jaxb-runtime, the most recent version in the 2.x series is 2.3.9. However, specific references above relate only to version 2.3.1 and some older versions, so you may want to check repositories such as Maven Central directly for any 3.x versions if you need the absolute latest. But 2.3.1 is a widely used and stable release in the 2.x line[6].

Security Vulnerabilities

Jersey Media JSON Processing 2.30.1

  • There is no direct evidence in the provided sources of any published CVEs or specific vulnerabilities affecting Jersey 2.30 or its modules, including JSON Processing, in recent years[7]. CVE listings for Jersey 2.30 show no vulnerabilities reported for 2021 and before, and no new entries appear for 2.30.1. However, always verify against public CVE databases for the very latest disclosures.

JAXB Runtime 2.3.1

  • For glassfish-jaxb-runtime 2.3.1, none of the sources above list known vulnerabilities specifically targeting this version[9]. The vulnerabilities referenced pertain to older 2.2.x releases, and there are no CVE records implicating 2.3.1, based on Snyk’s data[9]. As with all dependencies, especially Java XML libraries, keep watch for any new XXE or serialization issues and regularly check for updates.

Summary Table

Component Latest Stable Version Vulnerabilities in 2.30.1 / 2.3.1?
Jersey Media JSON Processing 3.1.10 None reported for 2.30.1 as of May 2025[1][3][7]
Glassfish JAXB Runtime 2.3.9 (latest 2.x) None reported for 2.3.1 as of May 2025[9]

Conclusion:

  • Use Jersey Media JSON Processing 3.1.10 and JAXB Runtime 2.3.9 (or newer) for the latest features and fixes.
  • As of the current date, there are no public security vulnerabilities specifically reported in Jersey Media JSON Processing 2.30.1 or Glassfish JAXB Runtime 2.3.1. Check CVE databases periodically for updates.

Citations:


Upgrade Jersey and JAXB dependencies

Jersey 2.30.1 and JAXB 2.3.1 are functional but outdated. The latest stable versions are Jersey 3.1.10 and JAXB 2.3.9. No CVEs are reported for the current versions, but upgrading ensures you get the newest fixes, features, and optimal compatibility with Spring Boot 3.2.2.

Locations to update:

  • pom.xml (lines 224–236)

Proposed diff:

<dependency>
  <groupId>org.glassfish.jersey.media</groupId>
  <artifactId>jersey-media-json-processing</artifactId>
- <version>2.30.1</version>
+ <version>3.1.10</version>
</dependency>

<dependency>
  <groupId>org.glassfish.jaxb</groupId>
  <artifactId>jaxb-runtime</artifactId>
- <version>2.3.1</version>
+ <version>2.3.9</version>
</dependency>
πŸ“ Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<!-- Jersey JSON Processing -->
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-processing</artifactId>
<version>2.30.1</version>
</dependency>
<!-- JAXB Runtime Implementation -->
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.1</version>
</dependency>
<!-- Jersey JSON Processing -->
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-processing</artifactId>
<version>3.1.10</version>
</dependency>
<!-- JAXB Runtime Implementation -->
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.9</version>
</dependency>
πŸ€– Prompt for AI Agents
In pom.xml around lines 224 to 236, the Jersey media json processing and JAXB
runtime dependencies use outdated versions 2.30.1 and 2.3.1 respectively. Update
the Jersey dependency version to 3.1.10 and the JAXB runtime version to 2.3.9 to
ensure you have the latest stable releases with improved features and
compatibility with Spring Boot 3.2.2. Modify the version tags in the dependency
declarations accordingly.

<!-- https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-api -->
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-api</artifactId>
<version>0.12.6</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-impl -->
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-impl</artifactId>
<version>0.12.6</version>
<scope>runtime</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-jackson -->
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-jackson</artifactId>
<version>0.12.6</version>
<scope>runtime</scope>
</dependency>
<!--END NEW DEPENDENCIES ADDED-->
</dependencies>
<profiles>
Expand Down
3 changes: 3 additions & 0 deletions src/main/environment/1097_ci.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ tm-url=@TM_API@

# FHIR Config
fhir-url=@FHIR_API@
logging.file.name=@env.IDENTITY_API_1097_LOGGING_FILE_NAME@
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Remove duplicate property definition.

The logging.file.name property is already defined on line 9. Having duplicate property definitions can cause confusion and potential configuration issues.

Apply this diff to remove the duplicate:

-logging.file.name=@env.IDENTITY_API_1097_LOGGING_FILE_NAME@
πŸ“ Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
logging.file.name=@env.IDENTITY_API_1097_LOGGING_FILE_NAME@
πŸ€– Prompt for AI Agents
In src/main/environment/1097_ci.properties at line 21, remove the duplicate
definition of the property logging.file.name since it is already defined at line
9. Delete the entire line 21 to avoid confusion and potential configuration
conflicts.


cors.allowed-origins=@env.CORS_ALLOWED_ORIGINS
3 changes: 2 additions & 1 deletion src/main/environment/1097_example.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ logging.file.name=logs/1097identity-api.log
tm-url=http://localhost:8089/

# FHIR Config
fhir-url=http://localhost:8093/
fhir-url=http://localhost:8093/
cors.allowed-origins=
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ› οΈ Refactor suggestion

Provide a meaningful default or document expected format.

An empty cors.allowed-origins property might cause runtime issues or disable CORS support entirely. Consider providing a default value or adding a comment explaining the expected format.

-cors.allowed-origins=
+# cors.allowed-origins=https://example.com,https://localhost:3000
+cors.allowed-origins=

Or provide a safe default:

-cors.allowed-origins=
+cors.allowed-origins=http://localhost:3000
πŸ€– Prompt for AI Agents
In src/main/environment/1097_example.properties at line 18, the
cors.allowed-origins property is empty, which can cause runtime issues or
disable CORS support. Fix this by either setting a meaningful default value such
as a wildcard or localhost URL, or add a comment above this line explaining the
expected format and usage of this property to guide users on how to configure it
properly.

3 changes: 3 additions & 0 deletions src/main/environment/common_ci.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ tm-url=@TM_API@

# FHIR Config
fhir-url=@FHIR_API@
logging.file.name=@env.IDENTITY_API_LOGGING_FILE_NAME@
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Remove duplicate logging configuration.

The logging.file.name property is already defined on line 9. This duplicate definition could cause confusion and unpredictable behavior.

-logging.file.name=@env.IDENTITY_API_LOGGING_FILE_NAME@
πŸ“ Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
logging.file.name=@env.IDENTITY_API_LOGGING_FILE_NAME@
πŸ€– Prompt for AI Agents
In src/main/environment/common_ci.properties at line 21, remove the duplicate
definition of the property logging.file.name since it is already defined at line
9. This will prevent confusion and ensure consistent logging configuration.


cors.allowed-origins=@env.CORS_ALLOWED_ORIGINS
3 changes: 2 additions & 1 deletion src/main/environment/common_example.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ logging.file.name=logs/identity-api.log
tm-url=http://localhost:8089/

# FHIR Config
fhir-url=http://localhost:8093/
fhir-url=http://localhost:8093/
cors.allowed-origins=*
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ› οΈ Refactor suggestion

Security concern: Overly permissive CORS configuration.

The wildcard * value allows any domain to make cross-origin requests, which could pose security risks including CSRF attacks and unauthorized data access. Consider restricting this to specific trusted domains in production environments.

For production use, replace the wildcard with specific domains:

-cors.allowed-origins=*
+cors.allowed-origins=https://yourtrustedomain.com,https://anothertrustedomain.com
πŸ“ Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
cors.allowed-origins=*
-cors.allowed-origins=*
+cors.allowed-origins=https://yourtrustedomain.com,https://anothertrustedomain.com
πŸ€– Prompt for AI Agents
In src/main/environment/common_example.properties at line 17, the CORS
configuration uses a wildcard '*' for allowed origins, which is insecure for
production. Replace the '*' with a comma-separated list of specific trusted
domain URLs to restrict cross-origin requests only to those domains, enhancing
security and preventing unauthorized access.

25 changes: 25 additions & 0 deletions src/main/java/com/iemr/common/identity/config/CorsConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.iemr.common.identity.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class CorsConfig implements WebMvcConfigurer {

@Value("${cors.allowed-origins}")
private String allowedOrigins;

@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns(allowedOrigins.split(","))
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedHeaders("*")
.exposedHeaders("Authorization", "Jwttoken") // Explicitly expose headers if needed
.allowCredentials(true)
.maxAge(3600)
;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix semicolon formatting.

The semicolon placement violates coding standards and is flagged by the pipeline.

Apply this fix:

-                .maxAge(3600)
-        ;
+                .maxAge(3600);
🧰 Tools
πŸͺ› GitHub Actions: CodeQL

[warning] 23-23: ';' is preceded with whitespace.

πŸͺ› GitHub Actions: Package

[warning] 23-23: Checkstyle warning: ';' is preceded with whitespace.

πŸ€– Prompt for AI Agents
In src/main/java/com/iemr/common/identity/config/CorsConfig.java at line 23,
there is a standalone semicolon that violates coding standards. Remove the
unnecessary semicolon or place it correctly according to Java syntax conventions
to resolve the formatting issue flagged by the pipeline.

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
Expand Down Expand Up @@ -83,7 +82,7 @@ public class IdentityController {
@Autowired
IdentityMapper mapper;

@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Get beneficiaries by advance search")
@PostMapping(path = "/advanceSearch", headers = "Authorization")
public String getBeneficiaries(
Expand Down Expand Up @@ -112,7 +111,7 @@ public String getBeneficiaries(
return response;
}

@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Search beneficiary based on beneficiary registration id")
@PostMapping(path = "/getByBenRegId", headers = "Authorization")
public String getBeneficiariesByBeneficiaryRegId(
Expand All @@ -137,7 +136,7 @@ public String getBeneficiariesByBeneficiaryRegId(
return response;
}

@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Search identity based on beneficiary registration id")
@PostMapping(path = "/getByBenId", headers = "Authorization")
public String getBeneficiariesByBeneficiaryId(
Expand Down Expand Up @@ -172,7 +171,7 @@ public String getBeneficiariesByBeneficiaryId(
return response;
}

@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Search beneficiary based on phone number")
@PostMapping(path = "/getByPhoneNum", headers = "Authorization")
public String getBeneficiariesByPhoneNum(
Expand Down Expand Up @@ -203,7 +202,7 @@ public String getBeneficiariesByPhoneNum(
return response;
}

@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Search beneficiary based on health ID / ABHA Address")
@PostMapping(path = "/getByAbhaAddress", headers = "Authorization")
public String searhBeneficiaryByABHAAddress(
Expand Down Expand Up @@ -235,7 +234,7 @@ public String searhBeneficiaryByABHAAddress(
return response;
}

@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Search beneficiary based on health ID number / ABHA ID number")
@PostMapping(path = "/getByAbhaIdNo", headers = "Authorization")
public String searhBeneficiaryByABHAIdNo(
Expand Down Expand Up @@ -267,7 +266,7 @@ public String searhBeneficiaryByABHAIdNo(
return response;
}

@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Search beneficiary based on family id")
@PostMapping(path = "/searchByFamilyId", headers = "Authorization")
public String searhBeneficiaryByFamilyId(
Expand Down Expand Up @@ -297,7 +296,7 @@ public String searhBeneficiaryByFamilyId(
}

// search beneficiary by lastModDate and districtID
@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary ="Search beneficiary by villageId and last modified date-time")
@PostMapping(path = "/searchByVillageIdAndLastModifiedDate")
public String searchBeneficiaryByVillageIdAndLastModDate(
Expand All @@ -322,7 +321,7 @@ public String searchBeneficiaryByVillageIdAndLastModDate(
return response;
}
// search beneficiary by lastModDate and districtID
@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary ="Get count of beneficiary by villageId and last modified date-time")
@PostMapping(path = "/countBenByVillageIdAndLastModifiedDate")
public String countBeneficiaryByVillageIdAndLastModDate(
Expand All @@ -342,7 +341,7 @@ public String countBeneficiaryByVillageIdAndLastModDate(
}
return response;
}
@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Search beneficiary based on government identity number")
@PostMapping(path = "/searhByGovIdentity", headers = "Authorization")
public String searhBeneficiaryByGovIdentity(
Expand Down Expand Up @@ -376,7 +375,7 @@ public String searhBeneficiaryByGovIdentity(
* @param identityEditData
* @return
*/
@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Edit identity by agent")
@PostMapping(path = "/edit", headers = "Authorization")
public String editIdentity(@Param(value = "{\r\n" + " \"eventTypeName\": \"String\",\r\n"
Expand Down Expand Up @@ -508,7 +507,7 @@ public String editIdentity(@Param(value = "{\r\n" + " \"eventTypeName\": \"Stri
* @param identityData
* @return
*/
@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Create identity by agent")
@PostMapping(path = "/create", headers = "Authorization")
public String createIdentity(@Param(value = "{\r\n" + " \"eventTypeName\": \"String\",\r\n"
Expand Down Expand Up @@ -615,7 +614,7 @@ public String createIdentity(@Param(value = "{\r\n" + " \"eventTypeName\": \"St
return response;
}

@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Reserve identity by agent")
@PostMapping(path = "/reserve", headers = "Authorization")
public String reserveIdentity(@RequestBody String reserveIdentity) {
Expand All @@ -635,7 +634,7 @@ public String reserveIdentity(@RequestBody String reserveIdentity) {
return response;
}

@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Unreserve identity by agent")
@PostMapping(path = "/unreserve", headers = "Authorization")
public String unreserveIdentity(@RequestBody String unreserve) {
Expand All @@ -661,7 +660,7 @@ public String unreserveIdentity(@RequestBody String unreserve) {
* @param benRegIds
* @return
*/
@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Get beneficiaries partial details by beneficiary registration id list")
@PostMapping(path = "/getByPartialBenRegIdList", headers = "Authorization")
public String getPartialBeneficiariesByBenRegIds(
Expand Down Expand Up @@ -693,7 +692,7 @@ public String getPartialBeneficiariesByBenRegIds(
* @param benRegIds
* @return
*/
@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Get beneficiaries by beneficiary registration id")
@PostMapping(path = "/getByBenRegIdList", headers = "Authorization")
public String getBeneficiariesByBenRegIds(
Expand Down Expand Up @@ -792,7 +791,7 @@ public String getJsonAsString(Object obj) {
return sb.toString();
}

@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Get finite beneficiaries")
@PostMapping(path = "/finiteSearch", headers = "Authorization")
public String getFiniteBeneficiaries(@RequestBody String searchFilter) {
Expand All @@ -816,7 +815,7 @@ public String getFiniteBeneficiaries(@RequestBody String searchFilter) {
}

// New API for getting beneficiary image only.
@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Get beneficiary image by beneficiary registration id")
@PostMapping(path = "/benImageByBenRegID", headers = "Authorization")
public String getBeneficiaryImageByBenRegID(@RequestBody String identityData) {
Expand All @@ -830,7 +829,7 @@ public String getBeneficiaryImageByBenRegID(@RequestBody String identityData) {
return benImage;
}

@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Edit education or community by agent")
@PostMapping(path = "/editEducationOrCommunity", headers = "Authorization")
public String editIdentityEducationOrCommunity(@Param(value = "{\r\n"
Expand Down Expand Up @@ -957,7 +956,7 @@ public String editIdentityEducationOrCommunity(@Param(value = "{\r\n"
}
}

@CrossOrigin()

@Operation(summary = "Check available beneficary id in local server")
@GetMapping(path = "/checkAvailablBenIDLocalServer", headers = "Authorization")
public String checkAvailablBenIDLocalServer() {
Expand All @@ -972,7 +971,7 @@ public String checkAvailablBenIDLocalServer() {
return response.toString();
}

@CrossOrigin(origins = { "*commonapi*" })

@Operation(summary = "Save server generated beneficiary ID & beneficiary registration ID to local server")
@PostMapping(path = "/saveGeneratedBenIDToLocalServer", headers = "Authorization", consumes = "application/json", produces = "application/json")
public String saveGeneratedBenIDToLocalServer(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@

import io.swagger.v3.oas.annotations.Operation;

@CrossOrigin

@RestController
@RequestMapping({ "/family" })
public class FamilyTaggingController {
private Logger logger = LoggerFactory.getLogger(FamilyTaggingController.class);
@Autowired
private FamilyTagService familyTagService;

@CrossOrigin()

@Operation(summary = "Create and modify family tagging")
@PostMapping(value = { "/addTag" }, consumes = "application/json", produces = "application/json")
public String saveFamilyTagging(@RequestBody String comingReq) {
Expand All @@ -59,7 +59,7 @@ public String saveFamilyTagging(@RequestBody String comingReq) {
return response.toString();
}

@CrossOrigin()

@Operation(summary = "Create family")
@PostMapping(value = { "/createFamily" }, consumes = "application/json", produces = "application/json")
public String createFamily(@RequestBody String comingReq) {
Expand All @@ -75,7 +75,7 @@ public String createFamily(@RequestBody String comingReq) {
return response.toString();
}

@CrossOrigin()

@Operation(summary = "Search family")
@PostMapping(value = { "/searchFamily" }, consumes = "application/json", produces = "application/json")
public String searchFamily(@RequestBody String comingReq) {
Expand All @@ -91,7 +91,7 @@ public String searchFamily(@RequestBody String comingReq) {
return response.toString();
}

@CrossOrigin()

@Operation(summary = "Get family members details")
@PostMapping(value = { "/getFamilyDetails" }, consumes = "application/json", produces = "application/json")
public String getFamilyDatails(@RequestBody String comingReq) {
Expand All @@ -107,7 +107,7 @@ public String getFamilyDatails(@RequestBody String comingReq) {
return response.toString();
}

@CrossOrigin()

@Operation(summary = "Untag beneficiary from a family")
@PostMapping(value = { "/untag" }, consumes = "application/json", produces = "application/json")
public String untagFamily(@RequestBody String comingReq) {
Expand All @@ -123,7 +123,7 @@ public String untagFamily(@RequestBody String comingReq) {
return response.toString();
}

@CrossOrigin()

@Operation(summary = "Edit beneficiary family details")
@PostMapping(value = { "/editFamilyTagging" }, consumes = "application/json", produces = "application/json")
public String editFamilyDetails(@RequestBody String comingReq) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class VersionController {

private Logger logger = LoggerFactory.getLogger(this.getClass().getSimpleName());

@CrossOrigin()

@Operation(summary = "Get version information")
@GetMapping(value = "/version",consumes = "application/json", produces = "application/json")
public String versionInformation() {
Expand Down
Loading
Loading