瀏覽代碼

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