From ae4db5435180c44b37f521c463b17f2023ac1d8c Mon Sep 17 00:00:00 2001
From: wayne <wayne8692wayne8692@gmail.com>
Date: 星期五, 18 二月 2022 09:25:50 +0800
Subject: [PATCH] [update] 若顧問停用時,將無法登入 (文案待確認)

---
 pamapi/src/main/resources/config/application.yml |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/pamapi/src/main/resources/config/application.yml b/pamapi/src/main/resources/config/application.yml
index 0c738cb..07a5362 100644
--- a/pamapi/src/main/resources/config/application.yml
+++ b/pamapi/src/main/resources/config/application.yml
@@ -147,13 +147,14 @@
   clientApp:
     name: 'pamapiApp'
   # By default CORS is disabled. Uncomment to enable.
-  # cors:
-  #   allowed-origins: "http://localhost:8100,http://localhost:9000"
-  #   allowed-methods: "*"
-  #   allowed-headers: "*"
-  #   exposed-headers: "Authorization,Link,X-Total-Count,X-${jhipster.clientApp.name}-alert,X-${jhipster.clientApp.name}-error,X-${jhipster.clientApp.name}-params"
-  #   allow-credentials: true
-  #   max-age: 1800
+  # ��甇文�� Nuxt��SR ��� Spring boot �������迨���rigin靘nuxt嚗�pi���spring boot��ORS������rigins�����靘��
+  cors:
+    allowed-origin-patterns: "*"
+    allowed-methods: "*"
+    allowed-headers: "*"
+    exposed-headers: "Authorization,Link,X-Total-Count,X-${jhipster.clientApp.name}-alert,X-${jhipster.clientApp.name}-error,X-${jhipster.clientApp.name}-params"
+    allow-credentials: true
+    max-age: 1800
   mail:
     from: pamapi@localhost
   api-docs:

--
Gitblit v1.8.0