{"id":24989297,"url":"https://github.com/githubnext/azureswacookies","last_synced_at":"2025-04-12T01:06:16.116Z","repository":{"id":251798410,"uuid":"838478013","full_name":"githubnext/azureswacookies","owner":"githubnext","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-25T16:09:07.000Z","size":810,"stargazers_count":3,"open_issues_count":3,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-12T01:06:08.915Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/githubnext.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-05T18:10:56.000Z","updated_at":"2025-04-04T04:09:04.000Z","dependencies_parsed_at":"2024-08-05T21:40:08.596Z","dependency_job_id":null,"html_url":"https://github.com/githubnext/azureswacookies","commit_stats":null,"previous_names":["githubnext/azureswacookies"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubnext%2Fazureswacookies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubnext%2Fazureswacookies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubnext%2Fazureswacookies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubnext%2Fazureswacookies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/githubnext","download_url":"https://codeload.github.com/githubnext/azureswacookies/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501861,"owners_count":21114683,"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":"2025-02-04T12:56:57.402Z","updated_at":"2025-04-12T01:06:16.094Z","avatar_url":"https://github.com/githubnext.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repo is a minimal reproduction of the issue where Azure Static Webapps strips out cookies that are set.\n\nIt's probably related to this issue: https://github.com/Azure/static-web-apps/issues/760\n\nTo run locally: `pnpm install` and then `pnpm dev`\n\nI've set this up to deploy to Azure SWA and you can see the difference between requests made to the local devserver and Azure SWA:\n\n![screenshot of terminal](problem.png)\n\nNotice that in production, the `set-cookie` header is not included even though the `arr-disable-session-affinity` header is correctly passed through. Both are set in the same file. You can see in [src/hooks.server.ts](./src/hooks.server.ts):\n\n```ts\nexport const handle: Handle = async ({ event, resolve }) =\u003e {\n\tevent.setHeaders({ 'Arr-Disable-Session-Affinity': 'true' });\n\tevent.cookies.set('testcookie', 'testcookie', {\n\t\tpath: '/',\n\t\tmaxAge: 31536000000,\n\t\tsameSite: \"lax\",\n\t\thttpOnly: false,\n\t});\n\treturn await resolve(event);\n};","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubnext%2Fazureswacookies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithubnext%2Fazureswacookies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubnext%2Fazureswacookies/lists"}