Skip to content

Commit

Permalink
CORS config added
Browse files Browse the repository at this point in the history
  • Loading branch information
abidknashtech committed Dec 1, 2023
1 parent 12d2773 commit db6cbfe
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
version = "1.0", description = "Reactive Cloud Application uses"
+ " Azure and GCP Cloud platforms to consume, transform, store and "
+ "fetch data and then display to front end using Reactive."))
public class JavaCompetencyDemoApplication {
public class AdminApplication {
/**
* This method is the entry point for the JavaCompetencyDemoApplication.
* It calls the springApplication.run method to start the application.
Expand All @@ -21,7 +21,7 @@ public class JavaCompetencyDemoApplication {
* the application
*/
public static void main(final String[] args) {
SpringApplication.run(JavaCompetencyDemoApplication.class, args);
SpringApplication.run(AdminApplication.class, args);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.nashtech.car.cart.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
@EnableWebMvc
public class CorsConfig implements WebMvcConfigurer {

@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**");
}
}

This file was deleted.

14 changes: 1 addition & 13 deletions deployment/gcpresources/terraform/key.json
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
{
"type": "service_account",
"project_id": "datamesh-2",
"private_key_id": "585b6eed36a592043e8f444bebdcf14d914e78f4",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCp1K2e9DkBRSaD\nfZKYba1ZHfVNQ3drUlf1E+aeoc4r8tb4ip8ZcZRnhK0Rip4rpPcW1a1Gq2uZyddi\nzjF59ylJTCFAmuLz2AN3aLSLmBc5npZdewp6LdOcSl2SN8z5OHe2DUmDn0BIVbVD\nGHfQy12p3V+bRWHP8+TVp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fK3tP0wplW66RAoGAUf0d\nRaV1YiT0yGeVTfNF+tOIwtn8/WpxCh7uu3HeZRSV1Jtar7fuGFcU+eUOh+boFTXk\nvcnrfv+F0WF1+90gOGTEuFUAHiMxCyAPaU6RuurHF1jd0nlkzDXZOmJfx4UFFEEO\nsPtjnLapNS1bjVaclqc1LliLbStV0VaIdSmRIP8CgYBHZWE8Eh8C3F2P7s5F3SzR\nHszPsr3UfNAFIg0EKfW+TG6NFGZLKLU5CT7Od2a9G2KrHGaAsjCZ9jaZXKP0HsvO\nyCJ4DXB4NlPxfZQYAHA4WhVaXcTfQvRT64myCLxvqtRhtcBhPh3o/4OpSrY0Ehge\nMXn0dawXjLrAJsBsUgersQ==\n-----END PRIVATE KEY-----\n",
"client_email": "[email protected]",
"client_id": "116961686900137160069",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/java-car-demo%40datamesh-2.iam.gserviceaccount.com",
"universe_domain": "googleapis.com"
}

1 change: 0 additions & 1 deletion local-dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ services:
memlock:
soft: -1
hard: -1
mem_limit: 1
axonserver:
image: axoniq/axonserver
hostname: axonserver
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.nashtech.order.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
@EnableWebMvc
public class CorsConfig implements WebMvcConfigurer {

@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**");
}
}

This file was deleted.

1 change: 0 additions & 1 deletion projects-changes-deploy.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
admin-service

0 comments on commit db6cbfe

Please sign in to comment.