Jelajahi Sumber

enable cors for health and info endpoints

Daniel Bohry 7 bulan lalu
induk
melakukan
d31357a3aa
1 mengubah file dengan 6 tambahan dan 1 penghapusan
  1. 6 1
      src/main/resources/application.yml

+ 6 - 1
src/main/resources/application.yml

@@ -35,4 +35,9 @@ management:
   endpoints:
     web:
       exposure:
-        include: info,health
+        include: info,health
+      cors:
+        allowed-origins: "*"
+        allowed-methods: GET
+        allowed-headers: "*"
+        max-age: 3600