feat: Add https://todo.almazlar.com to allowed CORS origins.
All checks were successful
Build and Push Docker Images / build-and-push (push) Successful in 1m37s
All checks were successful
Build and Push Docker Images / build-and-push (push) Successful in 1m37s
This commit is contained in:
@@ -11,7 +11,7 @@ public class WebConfig implements WebMvcConfigurer {
|
|||||||
public void addCorsMappings(CorsRegistry registry) {
|
public void addCorsMappings(CorsRegistry registry) {
|
||||||
registry.addMapping("/**")
|
registry.addMapping("/**")
|
||||||
.allowedOrigins("http://localhost:5173", "http://localhost:3000", "http://localhost:8081",
|
.allowedOrigins("http://localhost:5173", "http://localhost:3000", "http://localhost:8081",
|
||||||
"http://localhost:80") // Typical Vite/React/Docker ports
|
"http://localhost:80", "https://todo.almazlar.com") // Typical Vite/React/Docker ports
|
||||||
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
|
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
|
||||||
.allowedHeaders("*")
|
.allowedHeaders("*")
|
||||||
.allowCredentials(true);
|
.allowCredentials(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user