bridge icon indicating copy to clipboard operation
bridge copied to clipboard

fix: prevent duplicate set-cookie headers

Open wattanx opened this issue 10 months ago • 1 comments

🔗 Linked issue

Fixes: https://github.com/nuxt/bridge/issues/1272

❓ Type of change

  • [ ] 📖 Documentation (updates to the documentation or readme)
  • [x] 🐞 Bug fix (a non-breaking change that fixes an issue)
  • [ ] 👌 Enhancement (improving an existing functionality like performance)
  • [ ] ✨ New feature (a non-breaking change that adds functionality)
  • [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

When useCookie is called more than once, it results in multiple set-cookie headers.

📝 Checklist

  • [ ] I have linked an issue or discussion.
  • [ ] I have updated the documentation accordingly.

wattanx avatar Jun 27 '25 13:06 wattanx

Open in StackBlitz

npm i https://pkg.pr.new/@nuxt/bridge@1553
npm i https://pkg.pr.new/@nuxt/bridge-schema@1553

commit: cd43e48

pkg-pr-new[bot] avatar Jun 27 '25 13:06 pkg-pr-new[bot]