Skip to content

Commit 0351de1

Browse files
authored
Update CorsConfig.java
include new localhost dst
1 parent b77ada9 commit 0351de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/sri/jobtrackerapp/config/CorsConfig.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public WebMvcConfigurer corsConfigurer() {
1414
@Override
1515
public void addCorsMappings(CorsRegistry registry) {
1616
registry.addMapping("/**") // Allow all endpoints
17-
.allowedOrigins("http://localhost:3000", "https://cors-anywhere-osu.up.railway.app", "https://jobtrackerfe.netlify.app",
17+
.allowedOrigins("http://localhost:3000", "http://localhost:5176", "https://cors-anywhere-osu.up.railway.app", "https://jobtrackerfe.netlify.app",
1818
"https://jobtrackerbackend.up.railway.app")
1919
.allowedMethods("GET", "POST", "PUT", "DELETE").allowedHeaders("*").allowCredentials(true);
2020
}

0 commit comments

Comments
 (0)