I just want to add custom fields to the response header
人生最曼妙的風(fēng)景,竟是內(nèi)心的淡定與從容!
add_header 'Some-header' 'someValue';
I think you can find a bunch of answers to this question in a hundred searches. .
But if I ask here again, I must have encountered other problems. .
Warm reminder of a pitfall. For response headers defined by nginx, remember not to use underscores. When taking this header, in some languages, such as PHP.
What you define isSome-header
,取是取HTTP_SOME_HEADER