Skip to content

Anthony/cookies disclaimer#19

Open
AnthonyHu05 wants to merge 3 commits intomainfrom
anthony/cookies-disclaimer
Open

Anthony/cookies disclaimer#19
AnthonyHu05 wants to merge 3 commits intomainfrom
anthony/cookies-disclaimer

Conversation

@AnthonyHu05
Copy link
Collaborator

@AnthonyHu05 AnthonyHu05 commented Mar 7, 2026

Anthony/cookies disclaimer

Team Member Names: Anthony Hu

Summary

Implemented a cookie consent modal that asks users to accept or opt out of cookies, and wired it to a middleware so the consent choice is stored and available on every request.

Code Changes

  • middleware.ts
    • Read the runway_cookie_consent cookie on each request.
    • When present (accepted or rejected), set an x-cookie-consent response header for downstream usage.
  • components/CookieBanner.tsx
    • Added a client-side cookie consent modal that appears centered on first visit when no consent cookie is set.
    • Stores the user’s choice (accepted / rejected) in the runway_cookie_consent cookie and hides the modal afterward.
    • Updated the UI to a full-screen overlay with a centered dialog and clear Accept / Opt out actions.

Type of Change

  • New Feature
  • Bug Fix
  • Documentation
  • Other: (Fill In)

Checklist

  • I have reviewed my own code.
  • I have removed unnecessary comments and print statements from my code.
  • I have tested my code.

Screenshots

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant