Add localhost:4200 for new Angular frontend.
This commit is contained in:
parent
e9b106d5de
commit
a24f4192a9
@ -16,7 +16,7 @@ public class MvcConfiguration {
|
||||
public void addCorsMappings(CorsRegistry registry) {
|
||||
registry.addMapping("/**")
|
||||
.allowedMethods("GET", "POST", "PUT", "DELETE")
|
||||
.allowedOrigins("http://localhost:5173")
|
||||
.allowedOrigins("http://localhost:5173", "http://localhost:4200")
|
||||
.allowCredentials(true);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user