Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

yumauri/nginx_unsecure_cookie_module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

THIS PROJECT IS UNMAINTAINED AND DEPRECATED

Since version 1.19.3 nginx supports proxy_cookie_flags, use it!

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%