Browse Source

enable cors for health and info endpoints

Daniel Bohry 7 tháng trước cách đây
mục cha
commit
d31357a3aa
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  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