Browse Source

enable cors for health and info endpoints

Daniel Bohry 7 months ago
parent
commit
d31357a3aa
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/main/resources/application.yml

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

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