Skip to content

yumauri/nginx_unsecure_cookie_module

master
Switch branches/tags
Code
This branch is 2 commits ahead of AirisX:master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

The Nginx module for removing "Secure" cookie flag

License

The Nginx module for removing "Secure" cookie flag

Dependencies

Compatibility

  • 1.11.x (last tested: 1.11.2)

Earlier versions is not tested.

Installation

  1. Clone the git repository.
git clone git@github.com:yumauri/nginx_unsecure_cookie_module.git
  1. Add the module to the build configuration by adding --add-module=/path/to/nginx_unsecure_cookie_module or --add-dynamic-module=/path/to/nginx_unsecure_cookie_module

  2. Build the nginx binary.

  3. Install the nginx binary.

Synopsis

location / {
    unsecure_cookie Secret;
    unsecure_cookie *;
    unsecure_cookie SessionID;
    unsecure_cookie SiteToken;
}

Description

This module for Nginx removes flag "Secure" from cookies in the "Set-Cookie" upstream response headers. It is possible to set a default value using symbol "*". In this case "Secure" flag will be removed from all cookies.

Directives

unsecure_cookie

- -
Syntax unsecure_cookie <cookie_name|*>;
Default -
Context server, location

Description: Removes "Secure" flag from desired cookie.

Docker

If you want to have Docker image with this module, you can take this snippet as starting point.
Or, take this Docker image, made by Brice Vandeputte, at your own risk.

Author

Author of original module nginx_cookie_flag_module is
Anton Saraykin [Airisenator@gmail.com]

I just put my dirty hands on his code :)

About

Module for Nginx which removes flag "secure" from cookies.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 100.0%