Jhipster後臺跨域請求配置
阿新 • • 發佈:2021-02-07
將 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