Преглед на файлове

enable cors for health and info endpoints

Daniel Bohry преди 7 месеца
родител
ревизия
d31357a3aa
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  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