title: Nginx: secure and httponly cookies
body: <p>Any ideas on how to do this in Nginx ? </p>
  
  <p>I've tried using </p>
  
  <pre><code>proxy_cookie_path / "/; HTTPOnly; Secure";
  </code></pre>
  
  <p>But it is not working, tried creating modules for <a href="https://github.com/AirisX/nginx_cookie_flag_module" rel="nofollow noreferrer">https://github.com/AirisX/nginx_cookie_flag_module</a></p>
  
  <p>But I get an error :</p>
  
  <pre><code>2018/11/08 19:13:59 [emerg] 20894#20894: module "/etc/nginx/modules/ngx_http_cookie_flag_filter_module.so" is not binary compatible in /etc/nginx/nginx.conf:4
  </code></pre>
  
  <p>Any suggestions ?</p>