All Projects → AirisX → nginx_cookie_flag_module

AirisX / nginx_cookie_flag_module

Licence: BSD-2-Clause License
Module for Nginx which allows to set the flags "HttpOnly", "secure" and "SameSite" for cookies.

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to nginx cookie flag module

Ngx Cookie Service
Angular (4.2+ ...11) service for cookies. Originally based on the `ng2-cookies` library.
Stars: ✭ 363 (+259.41%)
Mutual labels:  cookie, cookies
Vue Warehouse
A Cross-browser storage for Vue.js and Nuxt.js, with plugins support and easy extensibility based on Store.js.
Stars: ✭ 161 (+59.41%)
Mutual labels:  cookie, cookies
Secureheaders
A PHP library aiming to make the use of browser security features more accessible.
Stars: ✭ 364 (+260.4%)
Mutual labels:  cookie, secure
Zebra Cookie
A ridiculously small (~500 bytes minified) JavaScript API for writing, reading and deleting browser cookies
Stars: ✭ 15 (-85.15%)
Mutual labels:  cookie, cookies
cookies
Convenient way to use cookies with PSR-7
Stars: ✭ 17 (-83.17%)
Mutual labels:  cookie, cookies
Vue Cookies
A simple Vue.js plugin for handling browser cookies
Stars: ✭ 293 (+190.1%)
Mutual labels:  cookie, cookies
Cookie Autodelete
Firefox and Chrome WebExtension that deletes cookies and other browsing site data as soon as the tab closes, domain changes, browser restarts, or a combination of those events.
Stars: ✭ 1,015 (+904.95%)
Mutual labels:  cookie, cookies
Cookies.js
Simple cookie framework with full Unicode support
Stars: ✭ 254 (+151.49%)
Mutual labels:  cookie, cookies
Client-Storage
🗄 Bulletproof persistent Client storage, works with disabled Cookies and/or localStorage
Stars: ✭ 15 (-85.15%)
Mutual labels:  cookie, cookies
Meteor-Cookies
🍪 Isomorphic bulletproof cookie functions for client and server
Stars: ✭ 41 (-59.41%)
Mutual labels:  cookie, cookies
CockyGrabber
C# library for the collection of browser information such as cookies, logins, and more
Stars: ✭ 46 (-54.46%)
Mutual labels:  cookie, cookies
PolishCookieConsent
Polish Cookie Consent is an extension, which automatically accepts privacy policy/GDPR on websites.
Stars: ✭ 17 (-83.17%)
Mutual labels:  cookie, cookies
Cookie Universal
Universal cookie plugin, perfect for SSR
Stars: ✭ 376 (+272.28%)
Mutual labels:  cookie, cookies
cookie-editor
A powerful browser extension to create, edit and delete cookies
Stars: ✭ 245 (+142.57%)
Mutual labels:  cookie, cookies
cookies
Manage your cookies on client and server side (Angular Universal)
Stars: ✭ 40 (-60.4%)
Mutual labels:  cookie, cookies
contao-cookiebar
Display the information about cookies on your Contao website
Stars: ✭ 27 (-73.27%)
Mutual labels:  cookie, cookies
laravel-localizer
Automatically detect and set an app locale that matches your visitor's preference.
Stars: ✭ 34 (-66.34%)
Mutual labels:  cookie
kooky
Go code to read cookies from browser cookie stores.
Stars: ✭ 81 (-19.8%)
Mutual labels:  cookies
wbp4j
Simple Java Api for 微博图床,使用简单的api即可完成上传图片
Stars: ✭ 48 (-52.48%)
Mutual labels:  cookie
cookie-consent
Cookie consent with accessible dialog, agnostic tag triggers and conditional content, script and embed hooks.
Stars: ✭ 55 (-45.54%)
Mutual labels:  cookies

The Nginx module for adding cookie flag

License

The Nginx module for adding 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:AirisX/nginx_cookie_flag_module.git
  1. Add the module to the build configuration by adding --add-module=/path/to/nginx_cookie_flag_module or --add-dynamic-module=/path/to/nginx_cookie_flag_module

  2. Build the nginx binary.

  3. Install the nginx binary.

Synopsis

location / {
    set_cookie_flag Secret HttpOnly secure SameSite;
    set_cookie_flag * HttpOnly;
    set_cookie_flag SessionID SameSite=Lax secure;
    set_cookie_flag SiteToken SameSite=Strict;
}

Description

This module for Nginx allows to set the flags "HttpOnly", "secure" and "SameSite" for cookies in the "Set-Cookie" upstream response headers. The register of letters for the flags doesn't matter as it will be converted to the correct value. The order of cookie declaration among multiple directives doesn't matter too. It is possible to set a default value using symbol "*". In this case flags will be added to the all cookies if no other value for them is overriden.

Directives

set_cookie_flag

- -
Syntax set_cookie_flag <cookie_name|*> [HttpOnly] [secure] [SameSite|SameSite=[Lax|Strict]];
Default -
Context server, location

Description: Add flag to desired cookie.

Author

Anton Saraykin [[email protected]]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].