Skip to content

Commit

Permalink
temp fix CORS url
Browse files Browse the repository at this point in the history
  • Loading branch information
abidknashtech committed Nov 30, 2023
1 parent 12d2773 commit 1ad5c15
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:4200/") // Allow requests from Angular app
.allowedOrigins("http://34.23.248.115:4200/") // Allow requests from Angular app
.allowedMethods("GET", "POST", "PUT", "DELETE")
.maxAge(3600);
}
Expand Down
13 changes: 0 additions & 13 deletions deployment/gcpresources/terraform/key.json
Original file line number Diff line number Diff line change
@@ -1,13 +0,0 @@
{
"type": "service_account",
"project_id": "datamesh-2",
"private_key_id": "585b6eed36a592043e8f444bebdcf14d914e78f4",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCp1K2e9DkBRSaD\nfZKYba1ZHfVNQ3drUlf1E+aeoc4r8tb4ip8ZcZRnhK0Rip4rpPcW1a1Gq2uZyddi\nzjF59ylJTCFAmuLz2AN3aLSLmBc5npZdewp6LdOcSl2SN8z5OHe2DUmDn0BIVbVD\nGHfQy12p3V+bRWHP8+TVpo/YsqL3YLMcvbG+Nn5o2juUlb3MssDF3YPC/GIirBWz\n0smXVnYtnNQg7ZIlLA8u9RVw3p3P/QQ7BF3Ssc1HzoGXEBQRV/O8VDNySJ0RRe/r\nzp7/hXbA4u3mXdnuXBH/kSNPnqzto9GfL5VzwEdFpRNdPfXraeaM/Gkp8KUQmWP9\ns2s7rhXzAgMBAAECggEAPe64qBRg63Unv+DdwmeQxUR3DceSN5mOSOoKeoQANye2\nPGn07ibs2zlXkeOOndTpZLLknzZpJWqleLs/8L3xGPFB2RkCtbDrRrLw0E1U/ua1\n5/40Sm0G0+KMsANYZPQyN7otummrXBWhZg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h3o/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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:4200/") // Allow requests from Angular app
.allowedOrigins("http://35.196.63.112:4200/") // Allow requests from Angular app
.allowedMethods("GET", "POST", "PUT", "DELETE")
.maxAge(3600);
}
Expand Down
4 changes: 3 additions & 1 deletion projects-changes-deploy.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
admin-service
admin-service
cart-service
order-service

0 comments on commit 1ad5c15

Please sign in to comment.