2013-06-28 37 views
0

我正在使用自定义标题,称为auth_token,我传递给我的rails后端。在localhost /的WEBrick,我可以访问:nginx /乘客配置,允许访问自定义标题

curl -H "auth_token: r5O_IdqpWStqmJFe0pil0Q" http://localhost:3000 

和标头值是可访问与:

auth_token=request.headers["auth_token"] if request.headers["auth_token"]. 

然而,当访问I分期(nginx的/乘客)其中:

curl -H "auth_token: r5O_IdqpWStqmJFe0pil0Q" http://staging.domain.com/ 

它无法访问标题值。有什么配置我需要做nginx /乘客,以便它可以访问此自定义标题?

THX

回答