It would be very helpful if NGINX can have a configuration option to add flags to some cookies. It should look like this:
```
proxy_cookie_set_flags JSESSIONID Secure HttpOnly;
```
This is very useful. For example, when we use NGINX as HTTP terminal, the backend shall not set the Secure flag, or it won’t work in development environment. (Development environment typically don’t have TLS certificates.) Current work-around is described in
https://unix.stackexchange.com/questions/306463/nginx-add-secure-flag-to-cookies-from-proxied-server
which is unfortunate. The number of upvotes and comments in that question explains how useful this feature is.