{"id":16535221,"url":"https://github.com/nargonath/express-cookie-cors-debug","last_synced_at":"2026-03-18T20:16:58.269Z","repository":{"id":42805438,"uuid":"270607149","full_name":"Nargonath/express-cookie-cors-debug","owner":"Nargonath","description":"Reproduction setup to debug why cookies are not set in browser when doing CORS request","archived":false,"fork":false,"pushed_at":"2022-12-13T00:38:16.000Z","size":257,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T15:22:05.229Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nargonath.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-06-08T09:25:42.000Z","updated_at":"2022-08-31T22:42:51.000Z","dependencies_parsed_at":"2023-01-28T03:46:50.583Z","dependency_job_id":null,"html_url":"https://github.com/Nargonath/express-cookie-cors-debug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nargonath/express-cookie-cors-debug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nargonath%2Fexpress-cookie-cors-debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nargonath%2Fexpress-cookie-cors-debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nargonath%2Fexpress-cookie-cors-debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nargonath%2Fexpress-cookie-cors-debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nargonath","download_url":"https://codeload.github.com/Nargonath/express-cookie-cors-debug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nargonath%2Fexpress-cookie-cors-debug/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262044424,"owners_count":23249746,"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":[],"created_at":"2024-10-11T18:26:47.122Z","updated_at":"2025-10-22T10:52:19.579Z","avatar_url":"https://github.com/Nargonath.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eexpress-cookie-cors-debug\u003c/h1\u003e\n  \u003cstrong\u003eReproduction setup to debug why cookies are not set in browser when doing CORS request\u003c/strong\u003e\n\u003c/div\u003e\n\n\u003chr\u003e\n\n# Solution\n\nThe problem was coming from the missing `credentials` property of `fetch`. I initially thought that `credentials` was only to tell the browser to send credentials with the request but it also dictates the browser behavior when receiving credentials from the server. I also needed to set `credentials` to `include` in my case.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnargonath%2Fexpress-cookie-cors-debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnargonath%2Fexpress-cookie-cors-debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnargonath%2Fexpress-cookie-cors-debug/lists"}