已采納回答 / dy_ygs
這跟nginx有關(guān),即只有response code為以下value時,才add the specified field:Adds the specified field to a response header provided that the response code equals 200, 201, 204, 206, 301, 302, 303, 304, or 307. A value can contain variables.也就是說你本身的接口返回了404,導致add_header沒有...
2018-10-26