From f816b197ed079f85fefdaebc7241acc7ac344fb4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pesti=20Tam=C3=A1s?= <pesti.tamas@hallgato.ppke.hu>
Date: Tue, 14 May 2024 15:23:59 +0200
Subject: [PATCH] Add cors rules for localhost

---
 backend/src/main/java/hu/pazmany/security/CorsConfig.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/src/main/java/hu/pazmany/security/CorsConfig.java b/backend/src/main/java/hu/pazmany/security/CorsConfig.java
index a209b94..f1524f4 100644
--- a/backend/src/main/java/hu/pazmany/security/CorsConfig.java
+++ b/backend/src/main/java/hu/pazmany/security/CorsConfig.java
@@ -10,7 +10,7 @@ public class CorsConfig implements WebMvcConfigurer {
     @Override
     public void addCorsMappings(CorsRegistry registry) {
         registry.addMapping("/**")
-                .allowedOrigins("https://vau-vau.web.app/", "http://localhost:3000", "http://localhost:3001", "http://localhost:3002", "http://localhost:8080")
+                .allowedOrigins("http://localhost/", "https://localhost/", "http://127.0.0.1/", "https://127.0.0.1/", "https://vau-vau.web.app/", "http://localhost:3000", "http://localhost:3001", "http://localhost:3002", "http://localhost:8080")
                 .allowedMethods("*");
     }
 }
\ No newline at end of file
-- 
GitLab