{"id":15043871,"url":"https://github.com/airisx/nginx_cookie_flag_module","last_synced_at":"2025-10-12T19:12:58.569Z","repository":{"id":65586356,"uuid":"85298263","full_name":"AirisX/nginx_cookie_flag_module","owner":"AirisX","description":"Module for Nginx which allows to set the flags \"HttpOnly\", \"secure\" and \"SameSite\" for cookies.","archived":false,"fork":false,"pushed_at":"2020-07-08T16:56:23.000Z","size":7,"stargazers_count":106,"open_issues_count":11,"forks_count":68,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-08T02:53:53.108Z","etag":null,"topics":["c","cookie","cookies","flag","httponly","nginx","nginx-module","samesite","secure"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AirisX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-17T10:12:09.000Z","updated_at":"2025-06-02T13:20:53.000Z","dependencies_parsed_at":"2023-01-30T18:20:11.450Z","dependency_job_id":null,"html_url":"https://github.com/AirisX/nginx_cookie_flag_module","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/AirisX/nginx_cookie_flag_module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AirisX%2Fnginx_cookie_flag_module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AirisX%2Fnginx_cookie_flag_module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AirisX%2Fnginx_cookie_flag_module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AirisX%2Fnginx_cookie_flag_module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AirisX","download_url":"https://codeload.github.com/AirisX/nginx_cookie_flag_module/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AirisX%2Fnginx_cookie_flag_module/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279012637,"owners_count":26085158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","cookie","cookies","flag","httponly","nginx","nginx-module","samesite","secure"],"created_at":"2024-09-24T20:49:44.425Z","updated_at":"2025-10-12T19:12:58.550Z","avatar_url":"https://github.com/AirisX.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"The Nginx module for adding cookie flag\n==========\n\n[![License](http://img.shields.io/badge/license-BSD-brightgreen.svg)](https://github.com/Airis777/nginx_cookie_flag_module/blob/master/LICENSE)\n\nThe Nginx module for adding cookie flag\n\n## Dependencies\n* [nginx](http://nginx.org)\n\n## Compatibility\n* 1.11.x (last tested: 1.11.2)\n\nEarlier versions is not tested.\n\n## Installation\n\n1. Clone the git repository.\n\n  ```\n  git clone git://github.com:AirisX/nginx_cookie_flag_module.git\n  ```\n\n2. Add the module to the build configuration by adding\n  `--add-module=/path/to/nginx_cookie_flag_module`\n   or\n  `--add-dynamic-module=/path/to/nginx_cookie_flag_module`\n\n3. Build the nginx binary.\n\n4. Install the nginx binary.\n\n## Synopsis\n\n```Nginx\nlocation / {\n    set_cookie_flag Secret HttpOnly secure SameSite;\n    set_cookie_flag * HttpOnly;\n    set_cookie_flag SessionID SameSite=Lax secure;\n    set_cookie_flag SiteToken SameSite=Strict;\n}\n```\n\n## Description\nThis module for Nginx allows to set the flags \"**HttpOnly**\", \"**secure**\" and \"**SameSite**\" for cookies in the \"*Set-Cookie*\" upstream response headers.\nThe 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.\nIt 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.\n\n## Directives\n\n### set_cookie_flag\n\n-| -\n--- | ---\n**Syntax**  | **set_cookie_flag** \\\u003ccookie_name\\|*\\\u003e [HttpOnly] [secure] [SameSite\\|SameSite=[Lax\\|Strict]];\n**Default** | -\n**Context** | server, location\n\nDescription: Add flag to desired cookie.\n\n## Author\nAnton Saraykin [\u003cAirisenator@gmail.com\u003e]","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairisx%2Fnginx_cookie_flag_module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fairisx%2Fnginx_cookie_flag_module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairisx%2Fnginx_cookie_flag_module/lists"}