保誠-保戶業務員媒合平台
Jack
2021-11-10 4a8e5d76ff89406d26e36df8538efacb24e16add
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的SSR 與 Spring boot 的雙專案,因此會有origin來自nuxt,但api打的是spring boot的CORS問題,目前origins暫時開成全來源
  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: