{"id":18525970,"url":"https://github.com/c00kiemon5ter/cookies_samesite_compat","last_synced_at":"2025-04-09T12:31:41.044Z","repository":{"id":62564772,"uuid":"243375088","full_name":"c00kiemon5ter/cookies_samesite_compat","owner":"c00kiemon5ter","description":"WSGI Middleware to preserve compatibility regarding cookies with the SameSite attribute","archived":false,"fork":false,"pushed_at":"2020-02-27T09:52:36.000Z","size":8,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T05:35:24.260Z","etag":null,"topics":["cookies","python3","samesite","samesite-cookies","wsgi","wsgi-middleware"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/cookies-samesite-compat/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c00kiemon5ter.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":"2020-02-26T22:00:42.000Z","updated_at":"2022-09-24T19:15:14.000Z","dependencies_parsed_at":"2022-11-03T16:45:46.679Z","dependency_job_id":null,"html_url":"https://github.com/c00kiemon5ter/cookies_samesite_compat","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c00kiemon5ter%2Fcookies_samesite_compat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c00kiemon5ter%2Fcookies_samesite_compat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c00kiemon5ter%2Fcookies_samesite_compat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c00kiemon5ter%2Fcookies_samesite_compat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c00kiemon5ter","download_url":"https://codeload.github.com/c00kiemon5ter/cookies_samesite_compat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248040389,"owners_count":21037856,"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","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":["cookies","python3","samesite","samesite-cookies","wsgi","wsgi-middleware"],"created_at":"2024-11-06T17:47:35.830Z","updated_at":"2025-04-09T12:31:36.033Z","avatar_url":"https://github.com/c00kiemon5ter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Cookies SameSite compatibility WSGI Middleware\n\nThis is a WSGI Middleware that given a configuration dictionary it will look\nfor the `cookies_samesite_compat` field that should hold a list of two-element\ntuples that define two cookie names. The first name is the primary cookie name\nand the second is the fallback cookie name. The primary cookie should be set by\nthe application with all needed attributes set, including the `SameSite`\nattribute.\n\nOn creating the response, the fallback cookie is created based on the primary\ncookie, but with the its own name and without the `SameSite` attributes. On\nprocessing a request, if the primary cookie is not there, the fallback cookie\nis looked up and used to create the primary cookie, even if the SameSite\nattribute will not be set, so that the appication can only care about one\ncookie name.\n\n\n### Usage\n\n```python\nfrom cookies_samesite_compat import CookiesSameSiteCompatMiddleware\n\n\nconfig = get_config()\nresponse = CookiesSameSiteCompatMiddleware(\n    WsgiApplication(config), config\n)\nreturn response\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc00kiemon5ter%2Fcookies_samesite_compat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc00kiemon5ter%2Fcookies_samesite_compat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc00kiemon5ter%2Fcookies_samesite_compat/lists"}