1. 程式人生 > 其它 >Jhipster後臺跨域請求配置

Jhipster後臺跨域請求配置

技術標籤:後臺jhipster跨域

將 exposed-headers: 'Authorization,Link,X-Total-Count'預設改為空

開發環境:

jhipster:
  cache: # Cache configuration
    ehcache: # Ehcache configuration
      time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache
      max-entries: 100 # Number of objects in each cache entry
  # CORS is only enabled by default with the "dev" profile, so BrowserSync can access the API
  cors:
    allowed-origins: '*'
    allowed-methods: '*'
    allowed-headers: '*'
    exposed-headers:
#    exposed-headers: 'Authorization,Link,X-Total-Count'
    allow-credentials: true
    max-age: 1800